]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/objc-category-class-property-mismatch/cat.m
ld64-305.tar.gz
[apple/ld64.git] / unit-tests / test-cases / objc-category-class-property-mismatch / cat.m
1 #if CATEGORY
2
3 #include <Foundation/Foundation.h>
4
5 @interface Foo : NSObject
6 @end
7
8 @interface Foo(mycat)
9 @property(readonly) int instanceProperty;
10 #if CLASS_PROPERTY
11 @property(class, readonly) int classProperty;
12 #endif
13 @end
14
15 @implementation Foo(mycat)
16 -(int) instanceProperty { return 0; }
17 +(int) classProperty { return 0; }
18 @end
19
20 #else
21
22 int x = 0;
23
24 #endif