Fix the clang-wpa example.
[clang.git] / test / SemaObjC / category-method-lookup-2.m
bloba31d824d1d4539dbd8fbf84e20aa0f5d72c46ae7
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 typedef struct objc_class *Class;
4 @interface NSObject
5 - (Class)class;
6 @end
7 @interface Bar : NSObject
8 @end
9 @interface Bar (Cat)
10 @end
12 // NOTE: No class implementation for Bar precedes this category definition.
13 @implementation Bar (Cat)
15 // private method.
16 + classMethod { return self; }
18 - instanceMethod {
19   [[self class] classMethod];
20   return 0;
23 @end