File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name attrs -enable-experimental-feature ABIAttribute
1
+ // RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -module-name attrs \
2
+ // RUN: -enable-experimental-feature ABIAttribute \
3
+ // RUN: -enable-experimental-feature NonIsolatedAsyncInheritsIsolationFromContext
4
+
2
5
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs
6
+
3
7
// RUN: %FileCheck %s --input-file %t.swiftinterface
4
8
5
9
// REQUIRES: swift_feature_ABIAttribute
10
+ // REQUIRES: swift_feature_NonIsolatedAsyncInheritsIsolationFromContext
6
11
7
12
// CHECK: @_transparent public func glass() -> Swift.Int { return 0 }{{$}}
8
13
@_transparent public func glass( ) -> Int { return 0 }
@@ -49,3 +54,11 @@ public var abiAttrOnVar: Int = 42
49
54
// CHECK: @available(*, unavailable, message: "this compiler cannot match the ABI specified by the @abi attribute")
50
55
// CHECK: public var abiAttrOnVar: Swift.Int
51
56
// CHECK: #endif
57
+
58
+ @execution ( concurrent)
59
+ public func testExecutionConcurrent( ) async { }
60
+ // CHECK: @execution(concurrent) public func testExecutionConcurrent() async
61
+
62
+ @execution ( caller)
63
+ public func testExecutionCaller( ) async { }
64
+ // CHECK: @execution(caller) public func testExecutionCaller() async
You can’t perform that action at this time.
0 commit comments