1 // RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
3 class CppAbstractBase {
5 virtual void testA() = 0;
6 virtual void testB() = 0; // expected-note {{unimplemented pure virtual method 'testB' in 'CppConcreteSub}}
10 class CppConcreteSub : public CppAbstractBase {
11 virtual void testA() { }
15 CppConcreteSub _concrete; // expected-error{{instance variable type 'CppConcreteSub' is an abstract class}}
17 - (CppAbstractBase*)abstract;
18 @property (nonatomic, readonly) const CppConcreteSub Prop; // expected-note {{property declared here}}
22 - (CppAbstractBase*)abstract {
25 @synthesize Prop; // expected-error {{synthesized instance variable type 'const CppConcreteSub' is an abstract class}}
30 CppConcreteSub sub; // expected-error {{field type 'CppConcreteSub' is an abstract class}}