aboutsummaryrefslogtreecommitdiff
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
commit30c07afc3241adf6199463dae134fc62daa2aeb3 (patch)
treed738266e100f45531abe5ac968bc62b3ee0d06f2
parentb98c6fe8877b809d4da3020692c9b38f972b92cf (diff)
Added test for r174461 that checks that the desired behavior also occurs in ObjC++ alongside ObjC.
\end paranoia. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174471 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGenObjCXX/externally-initialized-selectors.mm8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenObjCXX/externally-initialized-selectors.mm b/test/CodeGenObjCXX/externally-initialized-selectors.mm
new file mode 100644
index 0000000000..87a7c04cf7
--- /dev/null
+++ b/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];
+}