Skip to content

Commit 47de333

Browse files
committed
Only run this test on suitably new systems
1 parent cbd0c14 commit 47de333

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

validation-test/Reflection/reflect_Actor.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@
1010

1111
import SwiftReflectionTest
1212

13+
@available(SwiftStdlib 5.1, *)
1314
actor MyActor {
1415
var i: Int
1516
init() { i = 1 }
1617
}
1718

18-
var actor = MyActor()
19-
20-
reflect(object: actor)
19+
if #available(SwiftStdlib 5.1, *) {
20+
let actor = MyActor()
21+
reflect(object: actor)
22+
}
2123

2224
// CHECK-64: Reflecting an object.
2325
// CHECK-64-NEXT: Instance pointer in child address space: 0x{{[0-9a-fA-F]+}}

0 commit comments

Comments
 (0)