summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/externally-initialized-selectors.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/externally-initialized-selectors.m')
-rw-r--r--test/CodeGenObjC/externally-initialized-selectors.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenObjC/externally-initialized-selectors.m b/test/CodeGenObjC/externally-initialized-selectors.m
new file mode 100644
index 0000000..87a7c04
--- /dev/null
+++ b/test/CodeGenObjC/externally-initialized-selectors.m
@@ -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