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];
31 __attribute__((objc_root_class)) @interface ClassBase
32 @property (nonatomic, retain) ClassBase * foo; // expected-note {{property declared here}}
35 @implementation ClassBase
36 - (void) Meth:(ClassBase*)foo {
37 super.foo = foo; // expected-error {{'ClassBase' cannot use 'super' because it is a root class}}
38 [super setFoo:foo]; // expected-error {{'ClassBase' cannot use 'super' because it is a root class}}
42 @interface ClassDerived : ClassBase
43 @property (nonatomic, retain) ClassDerived * foo; // expected-warning {{auto property synthesis will not synthesize property 'foo'; it will be implemented by its superclass}}
46 @implementation ClassDerived // expected-note {{detected while default synthesizing properties in class implementation}}
47 - (void) Meth:(ClassBase*)foo {
48 super.foo = foo; // must work with no warning
49 [super setFoo:foo]; // works with no warning
53 @implementation IFaceNotFound (Foo) // expected-error {{cannot find interface declaration for 'IFaceNotFound'}}
55 return super.foo; // expected-error {{expected identifier or '('}}