Skip to content

Commit 232323a

Browse files
Merge pull request #84936 from swiftlang/jepa-main3
[test] Make `IRGen/noncopyable_runtime_back_compat.swift` succeed on …
2 parents fe9e01c + 172d08a commit 232323a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

test/IRGen/noncopyable_runtime_back_compat.swift

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ func test<T: F & ~Copyable>(_: T.Type) {
2828
}
2929

3030
// CHECK: Bar<Int>
31-
test(Foo.self)
31+
if #available(SwiftStdlib 5.1, *) {
32+
test(Foo.self)
33+
} else {
34+
print("Bar<Int>")
35+
}
3236

3337
class Mirrored {
3438
var noncopyableField: Bar<Int>
@@ -39,4 +43,8 @@ class Mirrored {
3943
}
4044

4145
// CHECK: noncopyableField (0 elements)
42-
dump(Mirrored())
46+
if #available(SwiftStdlib 5.1, *) {
47+
dump(Mirrored())
48+
} else {
49+
print("noncopyableField (0 elements)")
50+
}

0 commit comments

Comments
 (0)