Skip to content

Commit d342593

Browse files
authored
Merge pull request #38697 from apple/revert-38680-pr-ea11107f193cc1529851ec1fa844362c46b232b7
Revert "Fix test."
2 parents 4489a65 + a887046 commit d342593

File tree

2 files changed

+10
-23
lines changed

2 files changed

+10
-23
lines changed
Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,14 @@
1+
// REQUIRES: rdar81115750
12
// REQUIRES: CPU=arm64,OS=macosx
23

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
76

87
public func foo() {}
98

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"}

test/IRGen/autolink-runtime-compatibility.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Doesn't autolink compatibility library because target OS doesn't need it
1111
// RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.24 -emit-ir -parse-stdlib %s | %FileCheck -check-prefix=NO-FORCE-LOAD %s
1212

13-
// Only autolinks 5.1 and concurrency compatibility library because target OS has 5.1 and 5.5.
13+
// Only autolinks 5.1 compatibility library because target OS has 5.1
1414
// RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.15 -emit-ir -parse-stdlib %s | %FileCheck -check-prefix=FORCE-LOAD-51 %s
1515

1616
// Autolinks because compatibility library was explicitly asked for

0 commit comments

Comments
 (0)