1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
8 @interface MyClass : NSObject {}
12 @interface MyClass (MyCategorie)
16 @interface MySubClass : MyClass {}
20 @interface MySubSubClass : MySubClass {}
24 @implementation NSObject (NSObjectCategory)
28 @implementation MyClass
30 + (void)myClassMethod { }
35 @implementation MyClass (MyCategorie)
36 + (void)myClassCategoryMethod { }
37 - (void)categoryMethod {}
40 @implementation MySubClass
42 - (void)mySubMethod {}
46 // should lookup method in superclass implementation if available
50 [self categoryMethod];
51 [super categoryMethod];
53 // instance method of root class
56 [MyClass myClassMethod];
57 [MySubClass myClassMethod];
59 [MyClass myClassCategoryMethod];
60 [MySubClass myClassCategoryMethod];