|
| 1 | +// REQUIRES: rdar81115750 |
1 | 2 | // REQUIRES: CPU=arm64,OS=macosx
|
2 | 3 |
|
3 |
| -// Only autolink compatibility libraries before 5.5 since target OS doesn't need |
4 |
| -// it. |
5 |
| - |
6 |
| -// RUN: %target-swift-frontend -target arm64-apple-macosx10.14 -emit-ir -parse-stdlib %s | %FileCheck %s |
| 4 | +// Doesn't autolink compatibility library because target OS doesn't need it |
| 5 | +// RUN: %target-swift-frontend -target arm64-apple-macosx10.14 -emit-ir -parse-stdlib %s | %FileCheck -check-prefix=NO-FORCE-LOAD %s |
7 | 6 |
|
8 | 7 | public func foo() {}
|
9 | 8 |
|
10 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility50" |
11 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility51" |
12 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility52" |
13 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility53" |
14 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements" |
15 |
| -// CHECK-DAG: declare {{.*}} @"_swift_FORCE_LOAD_$_swiftCompatibilityConcurrency" |
16 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility50" |
17 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility51" |
18 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility52" |
19 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibility53" |
20 |
| -// CHECK-NOT: @"_swift_FORCE_LOAD_$_swiftCompatibilityDynamicReplacements" |
21 |
| - |
22 |
| -// CHECK-NOT: !{!"-lswiftCompatibility50"} |
23 |
| -// CHECK-NOT: !{!"-lswiftCompatibility51"} |
24 |
| -// CHECK-NOT: !{!"-lswiftCompatibility52"} |
25 |
| -// CHECK-NOT: !{!"-lswiftCompatibility53"} |
26 |
| -// CHECK-NOT: !{!"-lswiftCompatibilityDynamicReplacements"} |
27 |
| -// CHECK-DAG: !{!"-lswiftCompatibilityConcurrency"} |
| 9 | +// NO-FORCE-LOAD-NOT: FORCE_LOAD |
| 10 | +// NO-FORCE-LOAD-NOT: !{!"-lswiftCompatibility50"} |
| 11 | +// NO-FORCE-LOAD-NOT: !{!"-lswiftCompatibility51"} |
| 12 | +// NO-FORCE-LOAD-NOT: !{!"-lswiftCompatibility52"} |
| 13 | +// NO-FORCE-LOAD-NOT: !{!"-lswiftCompatibility53"} |
| 14 | +// NO-FORCE-LOAD-NOT: !{!"-lswiftCompatibilityDynamicReplacements"} |
0 commit comments