1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
15 __attribute__((objc_root_class))
16 @interface RootClass {
20 @property int property;
22 - (void) setMethod : (int)arg;
26 @interface Subclass : RootClass @end
29 (void)RootClass.property;
30 (void)Subclass.property;
31 (void)RootClass.method;
32 (void)Subclass.method;
34 RootClass.property = 1;
35 Subclass.property = 2;
40 (void)RootClass.classMethod;
41 (void)Subclass.classMethod;
44 (void)[RootClass property];
45 (void)[Subclass property];
48 [RootClass classMethod];
49 [Subclass classMethod];
52 [RootClass setProperty : 1];
53 [Subclass setProperty : 2];
54 [RootClass setMethod : 3];
55 [Subclass setMethod : 4];