]> git.saurik.com Git - apple/ld64.git/blob - ld64-134.9/unit-tests/test-cases/objc-category-warning/cat.m
e60f37bae2105c13a86d2a09e5c5ac486c69cf87
[apple/ld64.git] / ld64-134.9 / unit-tests / test-cases / objc-category-warning / cat.m
1 #include <Foundation/Foundation.h>
2
3 @interface Foo : NSObject
4 -(void) method1;
5 @end
6
7 @interface Foo(fromcat)
8 - (void) instance_method_fromcat;
9 + (void) class_method_fromcat;
10 #if OVERRIDE_CLASS
11 - (void) instance_method;
12 + (void) class_method;
13 #endif
14 @end
15
16 @implementation Foo(fromcat)
17 - (void) instance_method_fromcat {}
18 + (void) class_method_fromcat {}
19 #if OVERRIDE_CLASS
20 - (void) instance_method {}
21 + (void) class_method {}
22 #endif
23 @end
24