1 // RUN: %clang_cc1 -fsyntax-only -verify %s
17 return super.classGetter;
26 // FIXME: not implemented yet.
27 //int l1 = A.classGetter;
28 int l2 = [A classGetter2];
32 __attribute__((objc_root_class)) @interface ClassBase
33 @property (nonatomic, retain) ClassBase * foo; // expected-note {{property declared here}}
36 @implementation ClassBase
37 - (void) Meth:(ClassBase*)foo {
38 super.foo = foo; // expected-error {{'ClassBase' cannot use 'super' because it is a root class}}
39 [super setFoo:foo]; // expected-error {{'ClassBase' cannot use 'super' because it is a root class}}
43 @interface ClassDerived : ClassBase
44 @property (nonatomic, retain) ClassDerived * foo; // expected-warning {{auto property synthesis will not synthesize property 'foo'; it will be implemented by its superclass}}
47 @implementation ClassDerived // expected-note {{detected while default synthesizing properties in class implementation}}
48 - (void) Meth:(ClassBase*)foo {
49 super.foo = foo; // must work with no warning
50 [super setFoo:foo]; // works with no warning
54 @implementation IFaceNotFound (Foo) // expected-error {{cannot find interface declaration for 'IFaceNotFound'}}
56 return super.foo; // expected-error {{expected identifier or '('}}