2019-05-10 01:43:52 +08:00
|
|
|
// RUN: %clang_cc1 -fobjc-runtime=macosx-fragile-10.5 -o - -emit-llvm %s | FileCheck -check-prefix=FRAGILE %s
|
2019-05-10 02:32:16 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-10.14 -o - -emit-llvm %s | FileCheck -check-prefix=NONFRAGILE %s
|
2013-02-06 07:08:45 +08:00
|
|
|
|
2019-05-10 01:43:52 +08:00
|
|
|
// NONFRAGILE: @OBJC_SELECTOR_REFERENCES_ = internal externally_initialized global
|
|
|
|
// FRAGILE: @OBJC_SELECTOR_REFERENCES_ = private externally_initialized global
|
2013-02-06 07:08:45 +08:00
|
|
|
|
|
|
|
void test(id x) {
|
|
|
|
[x doSomething];
|
|
|
|
}
|