Added test for r174461 that checks that the desired behavior also occurs in ObjC...
authorMichael Gottesman <mgottesman@apple.com>
Wed, 6 Feb 2013 00:14:48 +0000 (00:14 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Wed, 6 Feb 2013 00:14:48 +0000 (00:14 +0000)
\end paranoia.

llvm-svn: 174471

clang/test/CodeGenObjCXX/externally-initialized-selectors.mm [new file with mode: 0644]

diff --git a/clang/test/CodeGenObjCXX/externally-initialized-selectors.mm b/clang/test/CodeGenObjCXX/externally-initialized-selectors.mm
new file mode 100644 (file)
index 0000000..87a7c04
--- /dev/null
@@ -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];
+}