From 30c07afc3241adf6199463dae134fc62daa2aeb3 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Wed, 6 Feb 2013 00:14:48 +0000 Subject: [PATCH] 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 --- test/CodeGenObjCXX/externally-initialized-selectors.mm | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/CodeGenObjCXX/externally-initialized-selectors.mm 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]; +} -- 2.40.0