Skip to content

Commit 2db917e

Browse files
authored
[test] Mark IsolatedAny tests are requiring asserts compiler (#71875)
IsolatedAny is an experimental feature, so the tests require an asserts compiler to pass.
1 parent 3821089 commit 2db917e

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

test/Concurrency/isolated_any.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-swift-frontend -typecheck -verify -disable-availability-checking -strict-concurrency=complete -enable-experimental-feature IsolatedAny -enable-upcoming-feature InferSendableFromCaptures %s
22

3+
// REQUIRES: asserts
4+
35
func globalNonisolatedFunction() {}
46
@MainActor func globalMainActorFunction() {}
57

test/Parse/isolated_any.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// RUN: %target-typecheck-verify-swift -enable-experimental-feature IsolatedAny
22

3+
// REQUIRES: asserts
4+
35
typealias FnType = @isolated(any) () -> ()
46

57
func testInParameter(function: @isolated(any) () -> ()) {}

test/SILGen/isolated_any.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-swift-frontend -emit-silgen -enable-experimental-feature IsolatedAny %s -module-name test -swift-version 5 -disable-availability-checking | %FileCheck %s
22
// REQUIRES: concurrency
3+
// REQUIRES: asserts
34

45
// CHECK-LABEL: sil hidden [ossa] @$s4test8callSync2fnyyyYAXE_tYaF
56
// CHECK: [[NIL_EXECUTOR:%.*]] = enum $Optional<Builtin.Executor>, #Optional.none

0 commit comments

Comments
 (0)