Skip to content

Commit 9132963

Browse files
committed
Enable availability checking in top-level global actor test
1 parent 7e21eb9 commit 9132963

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/SILGen/toplevel_globalactorvars.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-emit-silgen -disable-availability-checking -Xllvm -sil-full-demangle -enable-experimental-async-top-level %s | %FileCheck %s
1+
// RUN: %target-swift-emit-silgen -Xllvm -sil-full-demangle -enable-experimental-async-top-level %s | %FileCheck %s
22

33
// a
44
// CHECK-LABEL: sil_global hidden @$s24toplevel_globalactorvars1aSivp : $Int
@@ -10,8 +10,10 @@
1010
// CHECK-NEXT: alloc_global @$s24toplevel_globalactorvars1aSivp
1111
// CHECK-NEXT: [[AREF:%[0-9]+]] = global_addr @$s24toplevel_globalactorvars1aSivp : $*Int
1212

13+
@available(SwiftStdlib 5.1, *)
1314
actor MyActorImpl {}
1415

16+
@available(SwiftStdlib 5.1, *)
1517
@globalActor
1618
struct MyActor {
1719
static let shared = MyActorImpl()

0 commit comments

Comments
 (0)