|
1 | 1 | // RUN: %empty-directory(%t)
|
2 | 2 |
|
3 | 3 | // RUN: %target-swift-frontend -typecheck -emit-parseable-module-interface-path %t.swiftinterface %s
|
4 |
| -// RUN: %FileCheck %s < %t.swiftinterface --check-prefix CHECK --check-prefix COMMON |
| 4 | +// RUN: %FileCheck %s < %t.swiftinterface |
5 | 5 |
|
6 | 6 | // RUN: %target-swift-frontend -typecheck -emit-parseable-module-interface-path %t-resilient.swiftinterface -enable-resilience %s
|
7 |
| -// RUN: %FileCheck %s --check-prefix RESILIENT --check-prefix COMMON < %t-resilient.swiftinterface |
| 7 | +// RUN: %FileCheck %s < %t-resilient.swiftinterface |
8 | 8 |
|
9 |
| -// FIXME(rdar44993525): %target-swift-frontend -emit-module -o %t/Test.swiftmodule %t.swiftinterface -disable-objc-attr-requires-foundation-module |
10 |
| -// FIXME(rdar44993525): %target-swift-frontend -emit-module -o /dev/null -merge-modules %t/Test.swiftmodule -module-name Test -emit-parseable-module-interface-path - | %FileCheck %s --check-prefix CHECK --check-prefix COMMON |
| 9 | +// RUN: %target-swift-frontend -emit-module -o %t/Test.swiftmodule %t.swiftinterface -disable-objc-attr-requires-foundation-module |
| 10 | +// RUN: %target-swift-frontend -emit-module -o /dev/null -merge-modules %t/Test.swiftmodule -module-name Test -emit-parseable-module-interface-path - | %FileCheck %s |
11 | 11 |
|
12 | 12 | // RUN: %target-swift-frontend -emit-module -o %t/TestResilient.swiftmodule -enable-resilience %t-resilient.swiftinterface -disable-objc-attr-requires-foundation-module
|
13 |
| -// RUN: %target-swift-frontend -emit-module -o /dev/null -merge-modules %t/TestResilient.swiftmodule -module-name TestResilient -enable-resilience -emit-parseable-module-interface-path - | %FileCheck %s --check-prefix RESILIENT --check-prefix COMMON |
| 13 | +// RUN: %target-swift-frontend -emit-module -o /dev/null -merge-modules %t/TestResilient.swiftmodule -module-name TestResilient -enable-resilience -emit-parseable-module-interface-path - | %FileCheck %s |
14 | 14 |
|
15 |
| -// COMMON: @_fixed_layout public struct MyStruct { |
| 15 | +// CHECK: @_fixed_layout public struct MyStruct { |
16 | 16 | @_fixed_layout
|
17 | 17 | public struct MyStruct {
|
18 |
| - // CHECK: @_hasInitialValue public var publicVar: [[BOOL:(Swift\.)?Bool]]{{$}} |
19 |
| - // RESILIENT: public var publicVar: [[BOOL:(Swift\.)?Bool]] = false |
| 18 | + // CHECK: public var publicVar: [[BOOL:(Swift\.)?Bool]] = false |
20 | 19 | public var publicVar: Bool = false
|
21 | 20 |
|
22 |
| - // CHECK: @_hasInitialValue internal var internalVar: ([[BOOL]], [[BOOL]]){{$}} |
23 |
| - // RESILIENT: internal var internalVar: ([[BOOL]], [[BOOL]]) = (false, true) |
| 21 | + // CHECK: internal var internalVar: ([[BOOL]], [[BOOL]]) = (false, true) |
24 | 22 | internal var internalVar: (Bool, Bool) = (false, true)
|
25 | 23 |
|
26 |
| - // CHECK: @_hasInitialValue private var privateVar: [[BOOL]]{{$}} |
27 |
| - // RESILIENT: private var privateVar: [[BOOL]] = Bool(4 < 10) |
| 24 | + // CHECK: private var privateVar: [[BOOL]] = Bool(4 < 10) |
28 | 25 | private var privateVar: Bool = Bool(4 < 10)
|
29 | 26 |
|
30 | 27 | // CHECK: @usableFromInline
|
31 |
| - // CHECK-NEXT: internal var ufiVar: [[BOOL]]{{$}} |
32 |
| - // RESILIENT: @usableFromInline |
33 |
| - // RESILIENT-NEXT: internal var ufiVar: [[BOOL]] = true |
| 28 | + // CHECK-NEXT: internal var ufiVar: [[BOOL]] = true |
34 | 29 | @usableFromInline internal var ufiVar: Bool = true
|
35 | 30 |
|
36 |
| - // CHECK: @_hasInitialValue public var multiVar1: [[BOOL]], (multiVar2, multiVar3): ([[BOOL]], [[BOOL]]) |
37 |
| - // RESILIENT: public var multiVar1: [[BOOL]] = Bool(false), (multiVar2, multiVar3): ([[BOOL]], [[BOOL]]) = (true, 3 == 0) |
| 31 | + // CHECK: public var multiVar1: [[BOOL]] = Bool(false), (multiVar2, multiVar3): ([[BOOL]], [[BOOL]]) = (true, 3 == 0) |
38 | 32 | public var multiVar1: Bool = Bool(false), (multiVar2, multiVar3): (Bool, Bool) = (true, 3 == 0)
|
39 | 33 |
|
40 |
| - // COMMON: @_hasInitialValue public static var staticVar: [[BOOL]] |
| 34 | + // CHECK: @_hasInitialValue public static var staticVar: [[BOOL]] |
41 | 35 | public static var staticVar: Bool = Bool(true && false)
|
42 | 36 |
|
43 |
| - // COMMON: @inlinable internal init() {} |
| 37 | + // CHECK: @inlinable internal init() {} |
44 | 38 | @inlinable init() {}
|
45 | 39 | }
|
46 | 40 |
|
47 |
| -// COMMON: @_fixed_layout public class MyClass { |
| 41 | +// CHECK: @_fixed_layout public class MyClass { |
48 | 42 | @_fixed_layout
|
49 | 43 | public class MyClass {
|
50 |
| - // CHECK: @_hasInitialValue public var publicVar: [[BOOL]]{{$}} |
51 |
| - // RESILIENT: public var publicVar: [[BOOL]] = false |
| 44 | + // CHECK: public var publicVar: [[BOOL]] = false |
52 | 45 | public var publicVar: Bool = false
|
53 | 46 |
|
54 |
| - // CHECK: @_hasInitialValue internal var internalVar: [[BOOL]]{{$}} |
55 |
| - // RESILIENT: internal var internalVar: [[BOOL]] = false |
| 47 | + // CHECK: internal var internalVar: [[BOOL]] = false |
56 | 48 | internal var internalVar: Bool = false
|
57 | 49 |
|
58 |
| - // CHECK: @_hasInitialValue private var privateVar: {{(Swift\.)?}}UInt8{{$}} |
59 |
| - // RESILIENT: private var privateVar: {{(Swift\.)?}}UInt8 = UInt8(2) |
| 50 | + // CHECK: private var privateVar: {{(Swift\.)?}}UInt8 = UInt8(2) |
60 | 51 | private var privateVar: UInt8 = UInt8(2)
|
61 | 52 |
|
62 | 53 | // CHECK: @usableFromInline
|
63 |
| - // CHECK-NEXT: internal var ufiVar: [[BOOL]]{{$}} |
64 |
| - // RESILIENT: @usableFromInline |
65 |
| - // RESILIENT: internal var ufiVar: [[BOOL]] = true |
| 54 | + // CHECK-NEXT: internal var ufiVar: [[BOOL]] = true |
66 | 55 | @usableFromInline internal var ufiVar: Bool = true
|
67 | 56 |
|
68 |
| - // COMMON: @_hasInitialValue public static var staticVar: [[BOOL]] |
| 57 | + // CHECK: @_hasInitialValue public static var staticVar: [[BOOL]] |
69 | 58 | public static var staticVar: Bool = Bool(true && false)
|
70 | 59 |
|
71 |
| - // COMMON: @inlinable internal init() {} |
| 60 | + // CHECK: @inlinable internal init() {} |
72 | 61 | @inlinable init() {}
|
73 | 62 | }
|
74 | 63 |
|
75 |
| -// COMMON: @_hasInitialValue public var topLevelVar: [[BOOL]] |
| 64 | +// CHECK: @_hasInitialValue public var topLevelVar: [[BOOL]] |
76 | 65 | public var topLevelVar: Bool = Bool(false && !true)
|
0 commit comments