summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-02-06 00:14:48 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-02-06 00:14:48 +0000
commite7b56375e1d801bea0224fc77a062d7075272909 (patch)
tree62aa91a60cf1ed6e684c1686982f717c4a0dded3 /clang
parent76ff8b54b3951bd03b658ee0a3205e4a68413645 (diff)
downloadbcm5719-llvm-e7b56375e1d801bea0224fc77a062d7075272909.tar.gz
bcm5719-llvm-e7b56375e1d801bea0224fc77a062d7075272909.zip
Added test for r174461 that checks that the desired behavior also occurs in ObjC++ alongside ObjC.
\end paranoia. llvm-svn: 174471
Diffstat (limited to 'clang')
-rw-r--r--clang/test/CodeGenObjCXX/externally-initialized-selectors.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjCXX/externally-initialized-selectors.mm b/clang/test/CodeGenObjCXX/externally-initialized-selectors.mm
new file mode 100644
index 00000000000..87a7c04cf71
--- /dev/null
+++ b/clang/test/CodeGenObjCXX/externally-initialized-selectors.mm
@@ -0,0 +1,8 @@
+// RUN: %clang_cc1 -cc1 -fobjc-runtime=macosx-fragile-10.5 -o - -emit-llvm %s | FileCheck %s
+// RUN: %clang_cc1 -cc1 -o - -emit-llvm %s | FileCheck %s
+
+// CHECK: @"\01L_OBJC_SELECTOR_REFERENCES_" = internal externally_initialized global
+
+void test(id x) {
+ [x doSomething];
+}
OpenPOWER on IntegriCloud