/* * Copyright (c) 2024, Matthew Olsson * * SPDX-License-Identifier: BSD-2-Clause */ // RUN: %clang++ -cc1 -verify %plugin_opts% %s 2>&1 #include #include struct NotACell { }; class TestClass { // expected-error@+1 {{Specialization type must inherit from GC::Cell}} GC::Ptr m_member_1; // expected-error@+1 {{Specialization type must inherit from GC::Cell}} GC::Ref m_member_2; // expected-error@+1 {{Specialization type must inherit from GC::Cell}} GC::RawPtr m_member_3; };