1
1
// RUN: %empty-directory(%t)
2
- // RUN: %target-swift-frontend %s -dump-parse -disable-availability-checking -enable-experimental-feature SymbolLinkageMarkers -enable-experimental-feature ABIAttribute -enable-experimental-feature Extern -enable-experimental-move-only -enable-experimental-feature ParserASTGen > %t/astgen.ast.raw
3
- // RUN: %target-swift-frontend %s -dump-parse -disable-availability-checking -enable-experimental-feature SymbolLinkageMarkers -enable-experimental-feature ABIAttribute -enable-experimental-feature Extern -enable-experimental-move-only > %t/cpp-parser.ast.raw
2
+ // RUN: %target-swift-frontend %s -dump-parse -disable-availability-checking \
3
+ // RUN: -enable-experimental-feature SymbolLinkageMarkers \
4
+ // RUN: -enable-experimental-feature ABIAttribute \
5
+ // RUN: -enable-experimental-feature Extern \
6
+ // RUN: -enable-experimental-feature NonIsolatedAsyncInheritsIsolationFromContext \
7
+ // RUN: -enable-experimental-move-only \
8
+ // RUN: -enable-experimental-feature ParserASTGen > %t/astgen.ast.raw
9
+
10
+ // RUN: %target-swift-frontend %s -dump-parse -disable-availability-checking \
11
+ // RUN: -enable-experimental-feature SymbolLinkageMarkers \
12
+ // RUN: -enable-experimental-feature ABIAttribute \
13
+ // RUN: -enable-experimental-feature Extern \
14
+ // RUN: -enable-experimental-feature NonIsolatedAsyncInheritsIsolationFromContext \
15
+ // RUN: -enable-experimental-move-only > %t/cpp-parser.ast.raw
4
16
5
17
// Filter out any addresses in the dump, since they can differ.
6
18
// RUN: sed -E 's#0x[0-9a-fA-F]+##g' %t/cpp-parser.ast.raw > %t/cpp-parser.ast
7
19
// RUN: sed -E 's#0x[0-9a-fA-F]+##g' %t/astgen.ast.raw > %t/astgen.ast
8
20
9
21
// RUN: %diff -u %t/astgen.ast %t/cpp-parser.ast
10
22
11
- // RUN: %target-typecheck-verify-swift -enable-experimental-feature SymbolLinkageMarkers -enable-experimental-feature ABIAttribute -enable-experimental-feature Extern -enable-experimental-move-only -enable-experimental-feature ParserASTGen
23
+ // RUN: %target-typecheck-verify-swift \
24
+ // RUN: -enable-experimental-feature SymbolLinkageMarkers \
25
+ // RUN: -enable-experimental-feature ABIAttribute \
26
+ // RUN: -enable-experimental-feature Extern \
27
+ // RUN: -enable-experimental-move-only \
28
+ // RUN: -enable-experimental-feature ParserASTGen \
29
+ // RUN: -enable-experimental-feature NonIsolatedAsyncInheritsIsolationFromContext
12
30
13
31
// REQUIRES: executable_test
14
32
// REQUIRES: swift_swift_parser
15
33
// REQUIRES: swift_feature_SymbolLinkageMarkers
16
34
// REQUIRES: swift_feature_Extern
17
35
// REQUIRES: swift_feature_ParserASTGen
18
36
// REQUIRES: swift_feature_ABIAttribute
37
+ // REQUIRES: swift_feature_NonIsolatedAsyncInheritsIsolationFromContext
19
38
20
39
// rdar://116686158
21
40
// UNSUPPORTED: asan
@@ -26,7 +45,7 @@ struct S1 {
26
45
27
46
func testStatic( ) {
28
47
// static.
29
- S1 . staticMethod ( )
48
+ S1 . staticMethod ( )
30
49
S1 ( ) . staticMethod ( ) // expected-error {{static member 'staticMethod' cannot be used on instance of type 'S1'}}
31
50
}
32
51
@@ -160,3 +179,14 @@ struct StorageRestrctionTest {
160
179
161
180
@_unavailableFromAsync struct UnavailFromAsyncStruct { } // expected-error {{'@_unavailableFromAsync' attribute cannot be applied to this declaration}}
162
181
@_unavailableFromAsync ( message: " foo bar " ) func UnavailFromAsyncFn( ) { }
182
+
183
+ @execution ( concurrent) func testGlobal( ) async { // Ok
184
+ }
185
+
186
+ do {
187
+ @execution ( caller) func testLocal( ) async { } // Ok
188
+
189
+ struct Test {
190
+ @execution ( concurrent) func testMember( ) async { } // Ok
191
+ }
192
+ }
0 commit comments