Skip to content

Commit fc1e650

Browse files
committed
[Tests] NFC: Add serialization test for @execution(...) attribute
1 parent c89ba5f commit fc1e650

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

test/ModuleInterface/attrs.swift

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
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+
25
// RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -module-name attrs
6+
37
// RUN: %FileCheck %s --input-file %t.swiftinterface
48

59
// REQUIRES: swift_feature_ABIAttribute
10+
// REQUIRES: swift_feature_NonIsolatedAsyncInheritsIsolationFromContext
611

712
// CHECK: @_transparent public func glass() -> Swift.Int { return 0 }{{$}}
813
@_transparent public func glass() -> Int { return 0 }
@@ -49,3 +54,11 @@ public var abiAttrOnVar: Int = 42
4954
// CHECK: @available(*, unavailable, message: "this compiler cannot match the ABI specified by the @abi attribute")
5055
// CHECK: public var abiAttrOnVar: Swift.Int
5156
// 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

0 commit comments

Comments
 (0)