[test] Make IRGen/noncopyable_runtime_back_compat.swift succeed on macOS 10.14.4 to unblock CI

rdar://162601951
This commit is contained in:
Anthony Latsis
2025-10-15 23:00:27 +01:00
parent e798e9c3cc
commit 172d08a9be

View File

@@ -28,7 +28,11 @@ func test<T: F & ~Copyable>(_: T.Type) {
}
// CHECK: Bar<Int>
test(Foo.self)
if #available(SwiftStdlib 5.1, *) {
test(Foo.self)
} else {
print("Bar<Int>")
}
class Mirrored {
var noncopyableField: Bar<Int>
@@ -39,4 +43,8 @@ class Mirrored {
}
// CHECK: noncopyableField (0 elements)
dump(Mirrored())
if #available(SwiftStdlib 5.1, *) {
dump(Mirrored())
} else {
print("noncopyableField (0 elements)")
}