Author: mgottesman
Date: Tue Feb 5 18:14:48 2013
New Revision: 174471
URL: http://llvm.org/viewvc/llvm-project?rev=174471&view=rev
Log:
Added test for r174461 that checks that the desired behavior also occurs in
ObjC++ alongside ObjC.
\end paranoia.
Added:
cfe/trunk/test/CodeGenObjCXX/externally-initialized-selectors.mm
Added: cfe/trunk/test/CodeGenObjCXX/externally-initialized-selectors.mm
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjCXX/externally-initialized-selectors.mm?rev=174471&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenObjCXX/externally-initialized-selectors.mm (added)
+++ cfe/trunk/test/CodeGenObjCXX/externally-initialized-selectors.mm Tue Feb 5
18:14:48 2013
@@ -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];
+}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits