1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
14 __attribute__((objc_root_class))
15 @interface RootClass {
19 @property int property;
21 - (void) setMethod : (int)arg;
25 @interface Subclass : RootClass @end
28 (void)RootClass.property;
29 (void)Subclass.property;
30 (void)RootClass.method;
31 (void)Subclass.method;
33 RootClass.property = 1;
34 Subclass.property = 2;
39 (void)RootClass.classMethod;
40 (void)Subclass.classMethod;
43 (void)[RootClass property];
44 (void)[Subclass property];
47 [RootClass classMethod];
48 [Subclass classMethod];
51 [RootClass setProperty : 1];
52 [Subclass setProperty : 2];
53 [RootClass setMethod : 3];
54 [Subclass setMethod : 4];