Skip to content

Commit

Permalink
Only run this test on suitably new systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tbkka committed Jul 31, 2024
1 parent cbd0c14 commit 47de333
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions validation-test/Reflection/reflect_Actor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@

import SwiftReflectionTest

@available(SwiftStdlib 5.1, *)
actor MyActor {
var i: Int
init() { i = 1 }
}

var actor = MyActor()

reflect(object: actor)
if #available(SwiftStdlib 5.1, *) {
let actor = MyActor()
reflect(object: actor)
}

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

0 comments on commit 47de333

Please sign in to comment.