summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjCXX/externally-initialized-selectors.mm
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjCXX/externally-initialized-selectors.mm')
-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 0000000..87a7c04
--- /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];
+}
OpenPOWER on IntegriCloud