]> granicus.if.org Git - clang/commitdiff
Test case for PR7431 by Nico Weber.
authorFariborz Jahanian <fjahanian@apple.com>
Mon, 21 Jun 2010 22:21:57 +0000 (22:21 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Mon, 21 Jun 2010 22:21:57 +0000 (22:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106494 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/category-class.m [new file with mode: 0644]

diff --git a/test/CodeGenObjC/category-class.m b/test/CodeGenObjC/category-class.m
new file mode 100644 (file)
index 0000000..53a2acb
--- /dev/null
@@ -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