aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGenObjC/category-class.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGenObjC/category-class.m b/test/CodeGenObjC/category-class.m
new file mode 100644
index 0000000000..53a2acb57b
--- /dev/null
+++ b/test/CodeGenObjC/category-class.m
@@ -0,0 +1,13 @@
+// RUN: %clang -c %s -o %t && libtool -static -o libcodegentest.a %t && %clang -bundle -o codegentestbundle -L. -lcodegentest -Wl,-ObjC && nm codegentestbundle | grep -F '[A(foo) foo_myStuff]'
+// XFAIL: *
+// XTARGET: darwin9
+// PR7431
+@interface A
+@end
+@interface A(foo)
+- (void)foo_myStuff;
+@end
+@implementation A(foo)
+- (void)foo_myStuff {
+}
+@end