|
1 | 1 | // RUN: %empty-directory(%t)
|
2 |
| -// RUN: %target-swift-frontend %s -dump-parse -disable-availability-checking -enable-experimental-feature SymbolLinkageMarkers -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 Extern -enable-experimental-move-only > %t/cpp-parser.ast.raw |
| 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 |
4 | 4 |
|
5 | 5 | // Filter out any addresses in the dump, since they can differ.
|
6 | 6 | // RUN: sed -E 's#0x[0-9a-fA-F]+##g' %t/cpp-parser.ast.raw > %t/cpp-parser.ast
|
7 | 7 | // RUN: sed -E 's#0x[0-9a-fA-F]+##g' %t/astgen.ast.raw > %t/astgen.ast
|
8 | 8 |
|
9 | 9 | // RUN: %diff -u %t/astgen.ast %t/cpp-parser.ast
|
10 | 10 |
|
11 |
| -// RUN: %target-typecheck-verify-swift -enable-experimental-feature SymbolLinkageMarkers -enable-experimental-feature Extern -enable-experimental-move-only -enable-experimental-feature ParserASTGen |
| 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 |
12 | 12 |
|
13 | 13 | // REQUIRES: executable_test
|
14 | 14 | // REQUIRES: swift_swift_parser
|
15 | 15 | // REQUIRES: swift_feature_SymbolLinkageMarkers
|
16 | 16 | // REQUIRES: swift_feature_Extern
|
17 | 17 | // REQUIRES: swift_feature_ParserASTGen
|
| 18 | +// REQUIRES: swift_feature_ABIAttribute |
18 | 19 |
|
19 | 20 | // rdar://116686158
|
20 | 21 | // UNSUPPORTED: asan
|
@@ -62,7 +63,10 @@ struct S4 {}
|
62 | 63 | @implementation extension ObjCClass1 {} // expected-error {{cannot find type 'ObjCClass1' in scope}}
|
63 | 64 | @implementation(Category) extension ObjCClass1 {} // expected-error {{cannot find type 'ObjCClass1' in scope}}
|
64 | 65 |
|
65 |
| -@_alignment(8) struct AnyAlignment {} |
| 66 | +@abi(func fn_abi()) // expected-error {{cannot give global function 'fn' the ABI of a global function with a different number of low-level parameters}} |
| 67 | +func fn(_: Int) {} |
| 68 | + |
| 69 | +@_alignment(8) struct AnyAlignment {} |
66 | 70 |
|
67 | 71 | @_allowFeatureSuppression(IsolatedAny) public func testFeatureSuppression(fn: @isolated(any) @Sendable () -> ()) {}
|
68 | 72 |
|
|
0 commit comments