diff options
| author | Michael Gottesman <mgottesman@apple.com> | 2013-02-06 00:14:48 +0000 |
|---|---|---|
| committer | Michael Gottesman <mgottesman@apple.com> | 2013-02-06 00:14:48 +0000 |
| commit | e7b56375e1d801bea0224fc77a062d7075272909 (patch) | |
| tree | 62aa91a60cf1ed6e684c1686982f717c4a0dded3 /clang | |
| parent | 76ff8b54b3951bd03b658ee0a3205e4a68413645 (diff) | |
| download | bcm5719-llvm-e7b56375e1d801bea0224fc77a062d7075272909.tar.gz bcm5719-llvm-e7b56375e1d801bea0224fc77a062d7075272909.zip | |
Added test for r174461 that checks that the desired behavior also occurs in ObjC++ alongside ObjC.
\end paranoia.
llvm-svn: 174471
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/test/CodeGenObjCXX/externally-initialized-selectors.mm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjCXX/externally-initialized-selectors.mm b/clang/test/CodeGenObjCXX/externally-initialized-selectors.mm new file mode 100644 index 00000000000..87a7c04cf71 --- /dev/null +++ b/clang/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]; +} |

