mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[test] Make IRGen/noncopyable_runtime_back_compat.swift succeed on macOS 10.14.4 to unblock CI
rdar://162601951
This commit is contained in:
@@ -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)")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user