File tree Expand file tree Collapse file tree 3 files changed +14
-22
lines changed Expand file tree Collapse file tree 3 files changed +14
-22
lines changed Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -disable-availability-checking -emit-module-path %t/a.swiftmodule -module-name a %s
3
+ // RUN: llvm-bcanalyzer -dump %t/a.swiftmodule | %FileCheck --implicit-check-not UnknownCode %s
3
4
// RUN: %target-swift-ide-test -print-module -module-to-print a -source-filename x -I %t | %FileCheck -check-prefix MODULE-CHECK %s
4
- // RUN: %target-swift-frontend -disable-availability-checking -emit-module-path %t/b.swiftmodule -module-name a %t/a.swiftmodule
5
- // RUN: cmp -s %t/a.swiftmodule %t/b.swiftmodule
6
5
7
6
// REQUIRES: concurrency
8
7
14
13
15
14
// MODULE-CHECK: actor A {
16
15
// MODULE-CHECK-NEXT: init() async
17
-
18
16
actor A {
19
17
init ( ) async { }
20
18
}
@@ -25,20 +23,18 @@ class C {
25
23
init ( ) async { }
26
24
}
27
25
26
+ // MODULE-CHECK: enum E {
27
+ // MODULE-CHECK-NEXT: case nothing
28
+ // MODULE-CHECK-NEXT: init() async
29
+ enum E {
30
+ case nothing
31
+ init ( ) async {
32
+ self = . nothing
33
+ }
34
+ }
35
+
28
36
// MODULE-CHECK: struct S {
29
37
// MODULE-CHECK-NEXT: init() async
30
38
struct S {
31
39
init ( ) async { }
32
40
}
33
-
34
- // ignore-----MODULE-CHECK: enum E {
35
- // ignore-----MODULE-CHECK-NEXT: case nothing
36
- // ignore-----MODULE-CHECK-NEXT: init() async
37
-
38
- // FIXME: until rdar://76678907 is fixed, this won't work.
39
- // enum E {
40
- // case nothing
41
- // init() async {
42
- // self = .nothing
43
- // }
44
- // }
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -disable-availability-checking -emit-module-path %t/a.swiftmodule -module-name a %s
3
- // RUN: llvm-bcanalyzer -dump %t/a.swiftmodule | %FileCheck -check-prefix BC-CHECK %s
4
- // RUN: %target-swift-ide-test -print-module -module-to-print a -source-filename x -I %t | %FileCheck -check-prefix MODULE-CHECK %s
5
- // RUN: %target-swift-frontend -disable-availability-checking -emit-module-path %t/b.swiftmodule -module-name a %t/a.swiftmodule
6
- // RUN: cmp -s %t/a.swiftmodule %t/b.swiftmodule
3
+ // RUN: llvm-bcanalyzer -dump %t/a.swiftmodule | %FileCheck --check-prefix BC-CHECK --implicit-check-not UnknownCode %s
4
+ // RUN: %target-swift-ide-test -print-module -module-to-print a -source-filename x -I %t | %FileCheck --check-prefix MODULE-CHECK %s
7
5
8
6
// REQUIRES: concurrency
9
7
21
19
22
20
// and look for nonisolated
23
21
24
- // BC-CHECK-NOT: UnknownCode
25
22
// BC-CHECK: <Nonisolated_DECL_ATTR abbrevid={{[0-9]+}} op0=0/>
26
23
27
24
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -emit-module-path %t/a.swiftmodule -module-name a %s -disable-availability-checking
3
+ // RUN: llvm-bcanalyzer -dump %t/a.swiftmodule | %FileCheck --implicit-check-not UnknownCode %s
3
4
// RUN: %target-swift-ide-test -print-module -module-to-print a -source-filename x -I %t | %FileCheck -check-prefix MODULE-CHECK %s
4
- // RUN: %target-swift-frontend -emit-module-path %t/b.swiftmodule -module-name a %t/a.swiftmodule -disable-availability-checking
5
- // RUN: cmp -s %t/a.swiftmodule %t/b.swiftmodule
6
5
7
6
///////////
8
7
// This test checks for correct serialization & deserialization of
You can’t perform that action at this time.
0 commit comments