]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/objc-category-optimize/cat1.m
11c170b656d1a58e0cdf1632d7f2eb72ab2c0751
[apple/ld64.git] / unit-tests / test-cases / objc-category-optimize / cat1.m
1 #include <Foundation/Foundation.h>
2
3 @interface Foo : NSObject
4 -(void) method1;
5 @end
6
7
8
9
10 @interface Foo(mycat)
11 -(void) instance_method_mycat1;
12 -(void) instance_method_mycat2;
13 +(void) class_method_mycat;
14 #if PROPERTIES
15 @property(readonly) int property1;
16 @property(readonly) int property2;
17 #endif
18 @end
19
20 @implementation Foo(mycat)
21 -(void) instance_method_mycat1 {}
22 -(void) instance_method_mycat2 {}
23 +(void) class_method_mycat {}
24 #if PROPERTIES
25 -(int) property1 { return 0; }
26 -(int) property2 { return 0; }
27 #endif
28 @end
29