]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/objc-category-optimize/cat1.m
ld64-409.12.tar.gz
[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 @property(class,readonly) int property3;
18 @property(class,readonly) int property4;
19 #endif
20 @end
21
22 @implementation Foo(mycat)
23 -(void) instance_method_mycat1 {}
24 -(void) instance_method_mycat2 {}
25 +(void) class_method_mycat {}
26 #if PROPERTIES
27 -(int) property1 { return 0; }
28 -(int) property2 { return 0; }
29 +(int) property3 { return 0; }
30 +(int) property4 { return 0; }
31 #endif
32 @end
33