From: Michael Gottesman Date: Wed, 6 Feb 2013 00:14:48 +0000 (+0000) Subject: Added test for r174461 that checks that the desired behavior also occurs in ObjC... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30c07afc3241adf6199463dae134fc62daa2aeb3;p=clang 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 --- 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]; +}