clang/test/CodeGenObjC/externally-initialized-selectors.m
raw| 1 | // RUN: %clang_cc1 -fobjc-runtime=macosx-fragile-10.5 -o - -emit-llvm %s | FileCheck -check-prefix=FRAGILE %s |
| 2 | // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-10.14 -o - -emit-llvm %s | FileCheck -check-prefix=NONFRAGILE %s |
| 3 | |
| 4 | // NONFRAGILE: @OBJC_SELECTOR_REFERENCES_ = internal externally_initialized global |
| 5 | // FRAGILE: @OBJC_SELECTOR_REFERENCES_ = private externally_initialized global |
| 6 | |
| 7 | void test(id x) { |
| 8 | [x doSomething]; |
| 9 | } |