Skip to content

Commit ccc6b2b

Browse files
Merge pull request #71897 from Snowy1803/add-missing-colons
[test] Add missing colons for FileCheck
2 parents edc6bca + 299cf29 commit ccc6b2b

20 files changed

+38
-38
lines changed

test/DebugInfo/debug_info_expression.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ bb0:
2626
// CHECK: %[[FIELD_X:.*]] = getelementptr {{.*}} %[[MY_STRUCT]]
2727
// CHECK-SIL: debug_value %{{[0-9]+}} : $*Builtin.Int64
2828
// CHECK-SIL-SAME: (name "my_struct", loc "file.swift":8:9, scope {{[0-9]+}})
29-
// CHECK-SIL-SAME type $MyStruct, expr op_deref:op_fragment:#MyStruct.x
29+
// CHECK-SIL-SAME: type $MyStruct, expr op_deref:op_fragment:#MyStruct.x
3030
debug_value %3 : $*Builtin.Int64, var, (name "my_struct", loc "file.swift":8:9, scope 1), type $MyStruct, expr op_deref:op_fragment:#MyStruct.x, loc "file.swift":9:17, scope 1
3131

3232
%4 = alloc_stack $SmallStruct, var, name "small_struct", loc "file.swift":10:11, scope 1

test/DebugInfo/implicit-scope.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public func main() {
1111
// Test that the first instruction on the next line is in the scope of "buf"
1212
// CHECK: store {{.*}}, !dbg ![[LOC0:[0-9]+]]
1313
// CHECK: call {{.*builtinStringLiteral.*}}, !dbg ![[LOC1:[0-9]+]]
14-
// CHECK ![[LOC0]] = {{.*}}line: 0
15-
// CHECK ![[LOC1]] = {{.*}}line: [[@LINE+1]]
14+
// CHECK: ![[LOC0]] = {{.*}}line: 0
15+
// CHECK: ![[LOC1]] = {{.*}}line: [[@LINE+1]]
1616
print("break here ...")
1717
}
1818
}

test/IRGen/prespecialized-metadata/enum-inmodule-2argument-1distinct_use.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// CHECK-SAME: i32 {{[0-9]+}},
2121
// CHECK-SAME: $s4main5ValueOwug
2222
// CHECK-SAME: $s4main5ValueOwup
23-
// CHECK-SAME ptr {{[^@]*}}@"$s4main5ValueOwui{{[^}]+}}
23+
// CHECK-SAME: ptr {{[^@]*}}@"$s4main5ValueOwui{{[^}]+}}
2424
// CHECK-SAME: }, align [[ALIGNMENT]]
2525
// CHECK: @"$s4main5ValueOyS2iGMf" = linkonce_odr hidden constant <{
2626
// CHECK-SAME: ptr,

test/IRGen/prespecialized-metadata/enum-inmodule-4argument-1distinct_use.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// CHECK-SAME: i32 {{[0-9]+}},
2121
// CHECK-SAME: $s4main5ValueOwug
2222
// CHECK-SAME: $s4main5ValueOwup
23-
// CHECK-SAME ptr {{[^@]*}}@"$s4main5ValueOwui{{[^,]*}}
23+
// CHECK-SAME: ptr {{[^@]*}}@"$s4main5ValueOwui
2424
// CHECK-SAME: }, align [[ALIGNMENT]]
2525
// CHECK: @"$s4main5ValueOyS4iGMf" = linkonce_odr hidden constant <{
2626
// CHECK-SAME: ptr,

test/IRGen/prespecialized-metadata/enum-inmodule-5argument-1distinct_use.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// CHECK-SAME: i32 {{[0-9]+}},
2121
// CHECK-SAME: $s4main5ValueOwug
2222
// CHECK-SAME: $s4main5ValueOwup
23-
// CHECK-SAME ptr {{[^@]*}}@"$s4main5ValueOwui{{[^,]*}}
23+
// CHECK-SAME: ptr {{[^@]*}}@"$s4main5ValueOwui
2424
// CHECK-SAME: }, align [[ALIGNMENT]]
2525
// CHECK: @"$s4main5ValueOyS5iGMf" = linkonce_odr hidden constant <{
2626
// CHECK-SAME: ptr,

test/IRGen/prespecialized-metadata/struct-inmodule-2argument-3distinct_use.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
// CHECK-SAME: $s4main5ValueVwet
6868
// CHECK-SAME: $s4main5ValueVwst
6969
// CHECK-SAME: [[INT]] {{[0-9]+}},
70-
// CHECK-SAMEL [[INT]] {{[0-9]+}},
70+
// CHECK-SAME: [[INT]] {{[0-9]+}},
7171
// CHECK-SAME: i32 {{[0-9]+}},
7272
// CHECK-SAME: i32 {{[0-9]+}}
7373
// CHECK-SAME: },

test/IRGen/relative_protocol_witness_table.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func instantiate_conditional_conformance_2nd<T>(_ t : T) where T: Sub, T.S == T
137137
// CHECK-SAME: i64 ptrtoint (ptr @"$s1A7BStructVAA9InheritedAAWP" to i64)) to i32),
138138
// CHECK-SAME: i32 trunc (i64 sub (i64 ptrtoint (ptr @"$s1A7BStructVAA8FuncOnlyAAWP" to i64),
139139
// CHECK-SAME: i64 ptrtoint (ptr getelementptr inbounds ([3 x i32], ptr @"$s1A7BStructVAA9InheritedAAWP", i32 0, i32 1) to i64)) to i32),
140-
// CHECK-SAME i32 trunc (i64 sub (i64 ptrtoint (ptr @"$s1A7BStructVAA9InheritedA2aDP1cyyFTW" to i64),
140+
// CHECK-SAME: i32 trunc (i64 sub (i64 ptrtoint (ptr @"$s1A7BStructVAA9InheritedA2aDP1cyyFTW" to i64),
141141
// CHECK-SAME: i64 ptrtoint (ptr getelementptr inbounds ([3 x i32], ptr @"$s1A7BStructVAA9InheritedAAWP", i32 0, i32 2) to i64)) to i32)
142142
// CHECK-SAME: ], align 8
143143

test/Interop/SwiftToCxx/extension/struct-extension-in-cxx.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extension Array {
1919
}
2020
}
2121

22-
// CHECK class SWIFT_SYMBOL("s:7Structs14TypeAfterArrayV") TypeAfterArray;
22+
// CHECK: class SWIFT_SYMBOL("s:7Structs14TypeAfterArrayV") TypeAfterArray;
2323
// CHECK: class SWIFT_SYMBOL("s:7Structs5ArrayV") Array final {
2424
// CHECK: swift::Int getX() const SWIFT_SYMBOL("s:7Structs5ArrayV1xSivp");
2525
// CHECK-NEXT: SWIFT_INLINE_THUNK void setX(swift::Int value) SWIFT_SYMBOL("s:7Structs5ArrayV1xSivp");

test/SILGen/foreach_async.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ struct AsyncLazySequence<S: Sequence>: AsyncSequence {
9595

9696
// CHECK: [[NONE_BB]]:
9797
// CHECK: funcEnd
98-
// CHECK return
98+
// CHECK: return
9999
// CHECK: } // end sil function '$s13foreach_async13trivialStructyyAA17AsyncLazySequenceVySaySiGGYaF'
100100
func trivialStruct(_ xx: AsyncLazySequence<[Int]>) async {
101101
for await x in xx {
@@ -136,7 +136,7 @@ func trivialStruct(_ xx: AsyncLazySequence<[Int]>) async {
136136

137137
// CHECK: [[NONE_BB]]:
138138
// CHECK: funcEnd
139-
// CHECK return
139+
// CHECK: return
140140
// CHECK: } // end sil function '$s13foreach_async21trivialStructContinueyyAA17AsyncLazySequenceVySaySiGGYaF'
141141

142142
func trivialStructContinue(_ xx: AsyncLazySequence<[Int]>) async {

test/SILGen/generic_signatures.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,22 @@ protocol Whereable {
8787
associatedtype Bssoc: Whereable
8888
}
8989
extension Whereable {
90-
// CHECK-LABEL sil hidden [ossa] @$s18generic_signatures9WhereablePAAE19staticExtensionFunc3arg7ElementSTQz8IteratorSTQz_tSTRzrlFZ : $@convention(method) <Self where Self : Sequence, Self : Whereable> (@in_guaranteed Self.Iterator, @thick Self.Type) -> @out Self.Element
90+
// CHECK-LABEL: sil hidden [ossa] @$s18generic_signatures9WhereablePAAE19staticExtensionFunc3arg7ElementSTQz8IteratorSTQz_tSTRzrlFZ : $@convention(method) <Self where Self : Sequence, Self : Whereable> (@in_guaranteed Self.Iterator, @thick Self.Type) -> @out Self.Element
9191
static func staticExtensionFunc(arg: Self.Iterator) -> Self.Element
9292
where Self: Sequence {
9393
fatalError()
9494
}
9595

96-
// CHECK-LABEL sil hidden [ossa] @$s18generic_signatures9WhereablePAAE13extensionFuncyy5BssocQz5AssocRtzrlF : $@convention(method) <Self where Self : Whereable, Self.Assoc == Self.Bssoc> (@in_guaranteed Self) -> ()
96+
// CHECK-LABEL: sil hidden [ossa] @$s18generic_signatures9WhereablePAAE13extensionFuncyy5BssocQz5AssocRtzrlF : $@convention(method) <Self where Self : Whereable, Self.Assoc == Self.Bssoc> (@in_guaranteed Self) -> ()
9797
func extensionFunc() where Assoc == Bssoc { }
9898

99-
// CHECK-LABEL sil hidden [ossa] @$s18generic_signatures9WhereablePAAE5AssocQzSgycAabERQAD_5BssocQZAGRtzrluig : $@convention(method) <Self where Self : Whereable, Self.Assoc : Whereable, Self.Bssoc == Self.Assoc.Bssoc> (@in_guaranteed Self) -> @out Optional<Self.Assoc>
99+
// CHECK-LABEL: sil hidden [ossa] @$s18generic_signatures9WhereablePAAE5AssocQzycAabERQAD_5BssocQZAFRtzrluig : $@convention(method) <Self where Self : Whereable, Self.Assoc : Whereable, Self.Bssoc == Self.Assoc.Bssoc> (@in_guaranteed Self) -> @out Self.Assoc
100100
subscript() -> Assoc
101101
where Assoc: Whereable, Bssoc == Assoc.Bssoc {
102102
fatalError()
103103
}
104104

105-
// CHECK-LABEL sil hidden [ossa] @$s18generic_signatures9WhereablePAAE5AssocQzSgycAabERQ5Bssoc_ADQZAERSrluig : $@convention(method) <Self where Self : Whereable, Self.Assoc : Whereable, Self.Assoc == Self.Bssoc.Assoc> (@in_guaranteed Self) -> @out Optional<Self.Assoc>
105+
// CHECK-LABEL: sil hidden [ossa] @$s18generic_signatures9WhereablePAAE5AssocQzycAabERQ5Bssoc_ADQZAERSrluig : $@convention(method) <Self where Self : Whereable, Self.Assoc : Whereable, Self.Assoc == Self.Bssoc.Assoc> (@in_guaranteed Self) -> @out Self.Assoc
106106
subscript() -> Assoc
107107
where Assoc: Whereable, Assoc == Bssoc.Assoc {
108108
fatalError()

test/SILOptimizer/OSLogMandatoryOptTest.sil

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@ bb0:
173173
destroy_value %9 : $String
174174
%12 = tuple ()
175175
return %12 : $()
176-
// CHECK-DAG [[STRINGUSE:%[0-9]+]] = function_ref @useFormatString
177-
// CHECK-DAG {{%.*}} = apply [[STRINGUSE]]([[STRINGCONST:%[0-9]+]])
178-
// CHECK-DAG [[STRINGCONST]] = apply [[STRINGINIT:%[0-9]+]]([[LIT:%[0-9]+]], {{%.*}}, {{%.*}}, {{%.*}})
179-
// CHECK-DAG [[STRINGINIT]] = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC
180-
// CHECK-DAG [[LIT]] = string_literal oslog "test message: %lld"
181-
// CHECK-DAG destroy_value [[STRINGCONST]] : $String
176+
// CHECK-DAG: [[STRINGUSE:%[0-9]+]] = function_ref @useFormatString
177+
// CHECK-DAG: {{%.*}} = apply [[STRINGUSE]]([[STRINGCONST:%[0-9]+]])
178+
// CHECK-DAG: [[STRINGCONST]] = apply [[STRINGINIT:%[0-9]+]]([[LIT:%[0-9]+]], {{%.*}}, {{%.*}}, {{%.*}})
179+
// CHECK-DAG: [[STRINGINIT]] = function_ref @$sSS21_builtinStringLiteral17utf8CodeUnitCount7isASCIISSBp_BwBi1_tcfC
180+
// CHECK-DAG: [[LIT]] = string_literal oslog "test message: %lld"
181+
// CHECK-DAG: destroy_value [[STRINGCONST]] : $String
182182
}
183183

184184
// Test that the OSLogOptimization pass does not fold instructions that define

test/SILOptimizer/alloc_vector_lowering.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ bb3:
7070
// CHECK: [[P:%.*]] = address_to_pointer [[G]]
7171
// CHECK: [[UMP:%.*]] = struct $UnsafeMutablePointer<Int64> ([[P]] : $Builtin.RawPointer)
7272
// CHECK: [[BA:%.*]] = struct_element_addr {{%.*}} : $*FixedArray<Int64>, #FixedArray.buffer
73-
// CHECK store [[UMP]] to [trivial] [[BA]]
73+
// CHECK: store [[UMP]] to [trivial] [[BA]]
7474
// CHECK: } // end sil function 'global_init_with_array_initialization'
7575
sil [global_init_once_fn] [ossa] @global_init_with_array_initialization : $@convention(thin) () -> () {
7676
bb0:
@@ -133,7 +133,7 @@ bb0:
133133
// CHECK: [[G:%.*]] = global_addr @global_init_uninitializedTv_
134134
// CHECK: [[P:%.*]] = address_to_pointer [[G]]
135135
// CHECK: [[UMP:%.*]] = struct $UnsafeMutablePointer<Int64> ([[P]] : $Builtin.RawPointer)
136-
// CHECK store [[UMP]] to [trivial] [[A]]
136+
// CHECK: store [[UMP]] to [trivial] [[A]]
137137
// CHECK: } // end sil function 'global_init_uninitialized'
138138
sil [global_init_once_fn] [ossa] @global_init_uninitialized : $@convention(thin) () -> () {
139139
bb0:

test/SILOptimizer/allocboxtostack_localapply.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ public func testrecur() -> Int {
124124
// AppliesToSpecialize should have the order: bar bas common.
125125
// Only then, the functions get specialized correctly, and we won't see an assert in checkNoPromotedBoxInApply.
126126
// CHECK-LABEL: sil [noinline] @$s26allocboxtostack_localapply8testdfs1SiyF :
127-
// CHECK-NOT : alloc_box ${ var Int }, var, name "x"
128-
// CHECK-NOT : alloc_box ${ var Int }, var, name "y"
127+
// CHECK-NOT: alloc_box ${ var Int }, var, name "x"
128+
// CHECK-NOT: alloc_box ${ var Int }, var, name "y"
129129
// CHECK-LABEL:} // end sil function '$s26allocboxtostack_localapply8testdfs1SiyF'
130130
@inline(never)
131131
public func testdfs1() -> Int {

test/SILOptimizer/allocboxtostack_localapply_ossa.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,8 +358,8 @@ struct Int {
358358
// AppliesToSpecialize should have the order: bar bas common.
359359
// Only then, the functions get specialized correctly, and we won't see an assert in checkNoPromotedBoxInApply.
360360
// CHECK-LABEL: sil [noinline] [ossa] @$testdfs1 :
361-
// CHECK-NOT : alloc_box ${ var Int64 }, var, name "x"
362-
// CHECK-NOT : alloc_box ${ var Int64 }, var, name "y"
361+
// CHECK-NOT: alloc_box ${ var Int64 }, var, name "x"
362+
// CHECK-NOT: alloc_box ${ var Int64 }, var, name "y"
363363
// CHECK-LABEL:} // end sil function '$testdfs1'
364364
sil [noinline] [ossa] @$testdfs1 : $@convention(thin) () -> Int64 {
365365
bb0:

test/SILOptimizer/cross-module-optimization.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ import Test
3333
func testNestedTypes() {
3434
let c = Container()
3535

36-
// CHECK-OUTPUT [Test.Container.Base]
36+
// CHECK-OUTPUT: [Test.Container.Base]
3737
// CHECK-OUTPUT: 27
3838
// CHECK-SIL-DAG: sil shared [noinline] @$s4Test9ContainerV9testclassyxxlFSi_Tg5
3939
print(c.testclass(27))
40-
// CHECK-OUTPUT [Test.Container.Base]
40+
// CHECK-OUTPUT: [Test.Container.Base]
4141
// CHECK-OUTPUT: 27
4242
// CHECK-SIL-DAG: sil public_external {{.*}} @$s4Test9ContainerV13testclass_genyxxlF
4343
print(c.testclass_gen(27))
44-
// CHECK-OUTPUT [Test.PE<Swift.Int>.B(27)]
44+
// CHECK-OUTPUT: [Test.PE<Swift.Int>.B(27)]
4545
// CHECK-OUTPUT: 27
4646
// CHECK-SIL-DAG: sil shared [noinline] @$s4Test9ContainerV8testenumyxxlFSi_Tg5
4747
print(c.testenum(27))
48-
// CHECK-OUTPUT [Test.PE<Swift.Int>.B(27)]
48+
// CHECK-OUTPUT: [Test.PE<Swift.Int>.B(27)]
4949
// CHECK-OUTPUT: 27
5050
// CHECK-SIL-DAG: sil public_external {{.*}} @$s4Test9ContainerV12testenum_genyxxlF
5151
print(c.testenum_gen(27))

test/SILOptimizer/existential_spl_witness_method.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class D : Q {
3232
// CHECK: apply [[FR1]]
3333
// CHECK-LABEL: } // end sil function '$s30existential_spl_witness_method1CCAA1PA2aDP7myfuncPySiAA1Q_pFTW'
3434

35-
// CHECK-LABEL : @$s30existential_spl_witness_method3bazyyAA1P_p_AA1Q_ptFTf4ee_n : $@convention(thin) <τ_0_0, τ_0_1 where τ_0_0 : P, τ_0_1 : Q> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> () {
35+
// CHECK-LABEL: @$s30existential_spl_witness_method3bazyyAA1P_p_AA1Q_ptFTf4ee_n : $@convention(thin) <τ_0_0, τ_0_1 where τ_0_0 : P, τ_0_1 : Q> (@in_guaranteed τ_0_0, @in_guaranteed τ_0_1) -> () {
3636
// CHECK: [[FR2:%.*]] = function_ref @$s30existential_spl_witness_method1CCAA1PA2aDP7myfuncPySiAA1Q_pFTW : $@convention(witness_method: P) (@in_guaranteed any Q, @in_guaranteed C) -> Int
3737
// CHECK: apply [[FR2]]
3838
// CHECK-LABEL: } // end sil function '$s30existential_spl_witness_method3bazyyAA1P_p_AA1Q_ptFTf4ee_n'

test/SILOptimizer/mandatory_inlining.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1472,8 +1472,8 @@ bb0:
14721472

14731473
// This test needs the guard malloc to crash without the fix in #35037
14741474
// Tests there is no use-after-free in ClosureCleanup::recordDeadFunction when deleting debug instructions
1475-
// CHECK-LABEL : sil [ossa] @$test_no_use_after_free :
1476-
// CHECK-LABEL : } // end sil function '$test_no_use_after_free'
1475+
// CHECK-LABEL: sil [ossa] @$test_no_use_after_free :
1476+
// CHECK-LABEL: } // end sil function '$test_no_use_after_free'
14771477
sil [ossa] @$test_no_use_after_free : $@convention(thin) () -> () {
14781478
bb0:
14791479
%12 = function_ref @callee : $@convention(thin) () -> ()

test/SILOptimizer/specialize_default_witness_resilience_ossa.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public struct ConformingNonTrivialStruct : ResilientProtocol {
3333
// CHECK-NEXT: [[LOAD:%.*]] = load [trivial] [[TMP]] : $*ConformingStruct
3434
// CHECK-NEXT: [[RESULT:%.*]] = apply [[FN]]([[LOAD]])
3535
// CHECK-NEXT: dealloc_stack [[TMP]] : $*ConformingStruct
36-
// CHECK } // end sil function 's8defaultA4main16ConformingStructV_TB5'
36+
// CHECK: } // end sil function '$s8defaultA4main16ConformingStructV_TB5'
3737

3838
// CHECK-LABEL: sil shared [ossa] @$s8defaultA4main26ConformingNonTrivialStructV_TB5
3939
// CHECK: bb0(%0 : @guaranteed $ConformingNonTrivialStruct):
@@ -43,7 +43,7 @@ public struct ConformingNonTrivialStruct : ResilientProtocol {
4343
// CHECK-NEXT: [[LOAD:%.*]] = load_borrow [[SB]] : $*ConformingNonTrivialStruct
4444
// CHECK-NEXT: [[RESULT:%.*]] = apply [[FN]]([[LOAD]])
4545
// CHECK: dealloc_stack [[TMP]] : $*ConformingNonTrivialStruct
46-
// CHECK } // end sil function 's8defaultA4main16ConformingNonTrivialStructV_TB5'
46+
// CHECK: } // end sil function '$s8defaultA4main26ConformingNonTrivialStructV_TB5'
4747

4848
sil [ossa] @defaultA : $@convention(witness_method: ResilientProtocol) <Self where Self : ResilientProtocol> (@in_guaranteed Self) -> () {
4949
bb0(%0 : $*Self):

test/SILOptimizer/unavailable_enum_element_mandatory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public func testAvailableElementIfCase(_ e: HasUnavailableElement) {
113113
}
114114

115115
// CHECK-LABEL: sil @$s4Test35testAvailableElementIfCaseResilientyy14resilient_enum0g19EnumWithUnavailableF0OF : $@convention(thin) (@in_guaranteed ResilientEnumWithUnavailableCase) -> () {
116-
// CHECK switch_enum_addr %2 : $*ResilientEnumWithUnavailableCase, case #ResilientEnumWithUnavailableCase.available!enumelt: [[AVAILBB:bb[0-9]+]], default [[DEFAULTBB:bb[0-9]+]]
116+
// CHECK: switch_enum_addr %2 : $*ResilientEnumWithUnavailableCase, case #ResilientEnumWithUnavailableCase.available!enumelt: [[AVAILBB:bb[0-9]+]], default [[DEFAULTBB:bb[0-9]+]]
117117
// CHECK: [[DEFAULTBB]]:
118118
// CHECK-NOT: unreachable
119119
// CHECK: } // end sil function '$s4Test35testAvailableElementIfCaseResilientyy14resilient_enum0g19EnumWithUnavailableF0OF'

test/SourceKit/SemanticTokens/semantic_tokens.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ var y = MyClass()
99
// String in line 5
1010
// CHECK: key.kind: source.lang.swift.ref.struct
1111
// CHECK: key.length: 6,
12-
// CHECK key.is_system: 1
12+
// CHECK: key.is_system: 1
1313
// CHECK-LABEL: },
1414

1515
// MyClass in line 6

0 commit comments

Comments
 (0)