]> granicus.if.org Git - clang/commitdiff
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174471 91177308-0d34-0410-b5e6-96231b3b80d8

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

diff --git a/test/CodeGenObjCXX/externally-initialized-selectors.mm b/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];
+}