]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/objc-category-optimize/foo.m
ld64-123.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / objc-category-optimize / foo.m
diff --git a/unit-tests/test-cases/objc-category-optimize/foo.m b/unit-tests/test-cases/objc-category-optimize/foo.m
new file mode 100644 (file)
index 0000000..0509927
--- /dev/null
@@ -0,0 +1,17 @@
+#include <Foundation/Foundation.h>
+
+@interface Foo : NSObject
+#ifndef NO_BASE_METHODS
+-(void) instance_method;
++(void) class_method;
+#endif
+@end
+
+
+@implementation Foo
+#ifndef NO_BASE_METHODS
+-(void) instance_method {}
++(void) class_method {}
+#endif
+@end
+