|
5 | 5 | // RUN: -enable-experimental-feature Lifetimes \ |
6 | 6 | // RUN: -enable-experimental-feature RawLayout \ |
7 | 7 | // RUN: -enable-experimental-feature SymbolLinkageMarkers \ |
| 8 | +// RUN: -enable-experimental-feature CDecl \ |
8 | 9 | // RUN: -enable-experimental-concurrency \ |
9 | 10 | // RUN: -enable-experimental-move-only \ |
10 | 11 | // RUN: -enable-experimental-feature ParserASTGen \ |
|
15 | 16 | // RUN: -enable-experimental-feature Lifetimes \ |
16 | 17 | // RUN: -enable-experimental-feature RawLayout \ |
17 | 18 | // RUN: -enable-experimental-feature SymbolLinkageMarkers \ |
| 19 | +// RUN: -enable-experimental-feature CDecl \ |
18 | 20 | // RUN: -enable-experimental-concurrency \ |
19 | 21 | // RUN: -enable-experimental-move-only \ |
20 | 22 | // RUN: | %sanitize-address > %t/cpp-parser.ast |
|
28 | 30 | // RUN: -enable-experimental-feature Lifetimes \ |
29 | 31 | // RUN: -enable-experimental-feature RawLayout \ |
30 | 32 | // RUN: -enable-experimental-feature SymbolLinkageMarkers \ |
| 33 | +// RUN: -enable-experimental-feature CDecl \ |
31 | 34 | // RUN: -enable-experimental-concurrency \ |
32 | 35 | // RUN: -enable-experimental-move-only |
33 | 36 |
|
|
39 | 42 | // REQUIRES: swift_feature_Lifetimes |
40 | 43 | // REQUIRES: swift_feature_RawLayout |
41 | 44 | // REQUIRES: swift_feature_SymbolLinkageMarkers |
| 45 | +// REQUIRES: swift_feature_CDecl |
42 | 46 |
|
43 | 47 | // rdar://116686158 |
44 | 48 | // UNSUPPORTED: asan |
@@ -95,7 +99,9 @@ func fn(_: Int) {} |
95 | 99 |
|
96 | 100 | @_disallowFeatureSuppression(NoncopyableGenerics) public struct LoudlyNC<T: ~Copyable> {} |
97 | 101 |
|
98 | | -@_cdecl("c_function_name") func foo(x: Int) {} |
| 102 | +@_cdecl("c_function_name") func cdeclUnderscore(x: Int) {} |
| 103 | +@cdecl(c_function_name_official) func cdecl(x: Int) {} |
| 104 | +@cdecl func cdeclDefault() {} |
99 | 105 |
|
100 | 106 | struct StaticProperties { |
101 | 107 | dynamic var property: Int { return 1 } |
|
0 commit comments