Skip to content

Commit 3337d03

Browse files
authored
[test] Add missing ':' for FileCheck directives (#10572)
In FileCheck tests, check prefixes must be immediately followed by ':'.
1 parent df26c47 commit 3337d03

13 files changed

+26
-26
lines changed

test/IRGen/big_types_corner_cases.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public class BigClass {
8383
}
8484
}
8585

86-
// CHECK-LABEL define{{( protected)?}} hidden swiftcc void @_T022big_types_corner_cases8BigClassC03useE6StructyAA0eH0V0aH0_tF(%T22big_types_corner_cases9BigStructV* noalias nocapture dereferenceable({{.*}}), %T22big_types_corner_cases8BigClassC* swiftself) #0 {
86+
// CHECK-LABEL: define{{( protected)?}} hidden swiftcc void @_T022big_types_corner_cases8BigClassC03useE6StructyAA0eH0V0aH0_tF(%T22big_types_corner_cases9BigStructV* noalias nocapture dereferenceable({{.*}}), %T22big_types_corner_cases8BigClassC* swiftself) #0 {
8787
// CHECK: getelementptr inbounds %T22big_types_corner_cases8BigClassC, %T22big_types_corner_cases8BigClassC*
8888
// CHECK: call void @_T0SqWy
8989
// CHECK: [[BITCAST:%.*]] = bitcast i8* {{.*}} to void (%T22big_types_corner_cases9BigStructV*, %swift.refcounted*)*

test/IRGen/builtins.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ struct Abc {
531531
var value : Builtin.Word
532532
}
533533

534-
// CHECK-LABEL define hidden {{.*}}@_T08builtins22assumeNonNegative_testBwAA3AbcVzF
534+
// CHECK-LABEL: define hidden {{.*}}@_T08builtins22assumeNonNegative_testBwAA3AbcVzF
535535
func assumeNonNegative_test(_ x: inout Abc) -> Builtin.Word {
536536
// CHECK: load {{.*}}, !range ![[R:[0-9]+]]
537537
return Builtin.assumeNonNegative_Word(x.value)
@@ -542,7 +542,7 @@ func return_word(_ x: Builtin.Word) -> Builtin.Word {
542542
return x
543543
}
544544

545-
// CHECK-LABEL define hidden {{.*}}@_T08builtins23assumeNonNegative_test2BwAA3AbcVzF
545+
// CHECK-LABEL: define hidden {{.*}}@_T08builtins23assumeNonNegative_test2BwBwF
546546
func assumeNonNegative_test2(_ x: Builtin.Word) -> Builtin.Word {
547547
// CHECK: call {{.*}}, !range ![[R]]
548548
return Builtin.assumeNonNegative_Word(return_word(x))

test/Index/roles.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ protocol X {
226226
var reqProp: Int { get }
227227
// CHECK: [[@LINE-1]]:7 | instance-property/Swift | reqProp | [[reqProp_USR:.*]] | Def,RelChild | rel: 1
228228
// CHECK: [[@LINE-2]]:22 | instance-method/acc-get/Swift | getter:reqProp | {{.*}} | Def,Dyn,RelChild,RelAcc | rel: 1
229-
// CHECK-NEXT RelChild,RelAcc | instance-property/Swift | reqProp_USR | [[reqProp_USR]]
229+
// CHECK-NEXT: RelChild,RelAcc | instance-property/Swift | reqProp | [[reqProp_USR]]
230230
}
231231

232232
protocol Y {}

test/Interpreter/SDK/objc_keypath.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ band.members = [Person(firstName: "John", lastName: "Lennon"),
3636
// CHECK: ===Members===
3737
// CHECK-NEXT: (
3838
// CHECK-NEXT: Lennon, John
39-
// CHECK-NEXT McCartney, Paul,
40-
// CHECK-NEXT Harrison, George,
41-
// CHECK-NEXT Star, Ringo
42-
// CHECK-NEXT)
39+
// CHECK-NEXT: McCartney, Paul
40+
// CHECK-NEXT: Harrison, George
41+
// CHECK-NEXT: Star, Ringo
42+
// CHECK-NEXT: )
4343
print("===Members===")
4444
print((band.value(forKeyPath: #keyPath(Band.members))! as AnyObject).description)
4545

test/PrintAsObjC/circularity.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ class E2: ProtoImpl {}
8686
// CHECK-LABEL: @interface F1 : ProtoImpl
8787
class F1: ProtoImpl {
8888
} // CHECK: @end
89-
// CHECK-LABEL @interface F2 : ProtoImpl
89+
// CHECK-LABEL: @interface F2 : ProtoImpl
9090
// CHECK: @end
91-
// CHECK-LABEL @interface F1 (SWIFT_EXTENSION(circularity))
91+
// CHECK-LABEL: @interface F1 (SWIFT_EXTENSION(circularity))
9292
extension F1 {
9393
// CHECK: - (void)test:
9494
func test(_: NeedsProto<F2>) {}
@@ -99,9 +99,9 @@ class F2: ProtoImpl {}
9999
// CHECK-LABEL: @interface G1 : ProtoImpl
100100
class G1: ProtoImpl {
101101
} // CHECK: @end
102-
// CHECK-LABEL @protocol G2 <Proto>
102+
// CHECK-LABEL: @protocol G2 <Proto>
103103
// CHECK: @end
104-
// CHECK-LABEL @interface G1 (SWIFT_EXTENSION(circularity))
104+
// CHECK-LABEL: @interface G1 (SWIFT_EXTENSION(circularity))
105105
extension G1 {
106106
// CHECK: - (void)test:
107107
func test(_: NeedsProto<G2>) {}

test/SILGen/auto_closures.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func call_auto_closure(_ x: @autoclosure () -> Bool) -> Bool {
1515
return x()
1616
}
1717

18-
// CHECK-LABEL sil @_T013auto_closures05test_A21_closure_with_capture{{[_0-9a-zA-Z]*}}F
18+
// CHECK-LABEL: sil hidden @_T013auto_closures05test_A21_closure_with_capture{{[_0-9a-zA-Z]*}}F
1919
func test_auto_closure_with_capture(_ x: Bool) -> Bool {
2020
// CHECK: [[CLOSURE:%.*]] = function_ref @_T013auto_closures05test_A21_closure_with_capture
2121
// CHECK: [[WITHCAPTURE:%.*]] = partial_apply [[CLOSURE]](

test/SILGen/materializeForSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ struct GenericSubscriptWitness : GenericSubscriptProtocol {
445445
// CHECK-NEXT: [[RESULT:%.*]] = tuple ()
446446
// CHECK-NEXT: return [[RESULT]] : $()
447447

448-
// CHECK-LABEL sil hidden [transparent] [thunk] @_T017materializeForSet23GenericSubscriptWitnessVAA0dE8ProtocolA2aDP9subscriptqd__qd__clufmTW : $@convention(witness_method) <τ_0_0> (Builtin.RawPointer, @inout Builtin.UnsafeValueBuffer, @in τ_0_0, @inout GenericSubscriptWitness) -> (Builtin.RawPointer, Optional<Builtin.RawPointer>) {
448+
// CHECK-LABEL: sil hidden [transparent] @_T017materializeForSet23GenericSubscriptWitnessV9subscriptxxclufm : $@convention(method) <T> (Builtin.RawPointer, @inout Builtin.UnsafeValueBuffer, @in T, @inout GenericSubscriptWitness) -> (Builtin.RawPointer, Optional<Builtin.RawPointer>) {
449449
// CHECK: bb0(%0 : $Builtin.RawPointer, %1 : $*Builtin.UnsafeValueBuffer, %2 : $*T, %3 : $*GenericSubscriptWitness):
450450
// CHECK-NEXT: [[BUFFER:%.*]] = alloc_value_buffer $T in %1 : $*Builtin.UnsafeValueBuffer
451451
// CHECK-NEXT: copy_addr %2 to [initialization] [[BUFFER]] : $*T

test/SILGen/vtables.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,11 @@ class Derived : Base {
130130
}
131131
}
132132

133-
134133
// CHECK: sil_vtable RequiredInitDerived {
135134
// CHECK-NEXT: #SimpleInitBase.init!initializer.1: {{.*}} : _T07vtables19RequiredInitDerivedC{{[_0-9a-zA-Z]*}}fc
136-
// CHECK-NEXT #RequiredInitDerived.init!allocator.1: {{.*}} : _TFC7vtables19RequiredInitDerivedC
137-
// CHECK-NEXT}
135+
// CHECK-NEXT: #RequiredInitDerived.init!allocator.1: {{.*}} : _T07vtables19RequiredInitDerivedC
136+
// CHECK-NEXT: #RequiredInitDerived.deinit!deallocator: _T07vtables19RequiredInitDerivedCfD
137+
// CHECK-NEXT: }
138138

139139
class SimpleInitBase { }
140140

test/SILOptimizer/copyforward.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ bb0:
450450
// CHECK-LABEL: sil @nil_comparison
451451
// CHECK: alloc_stack
452452
// CHECK-NOT: copy_addr
453-
// CHECK-NOT destroy_addr
453+
// CHECK-NOT: destroy_addr
454454
// CHECK: switch_enum_addr %0
455455
// CHECK: [[D:%.*]] = unchecked_take_enum_data_addr %0
456456
// CHECK: destroy_addr [[D]]

test/SILOptimizer/dead_store_elim.sil

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ bb0(%0 : $*Example):
10381038

10391039
/// Make sure we can coalesce the 2 live stores to the 2 fields in S4.
10401040
///
1041-
/// CHECK-LABEL : partial_dead_store_struct_in_struct
1041+
/// CHECK-LABEL: partial_dead_store_struct_in_struct
10421042
/// CHECK: [[RET0:%.+]] = struct_extract
10431043
/// CHECK: [[RET1:%.+]] = struct_element_addr
10441044
/// CHECK: {{ store}} [[RET0:%.+]] to [[RET1:%.+]] : $*S4
@@ -1058,7 +1058,7 @@ bb0(%0 : $*S5):
10581058

10591059
/// Make sure we do not coalesce the 2 live stores to the 2 fields in S6.
10601060
///
1061-
/// CHECK-LABEL : sil hidden @discontiguous_partial_dead_store_simple_struct
1061+
/// CHECK-LABEL: sil hidden @discontiguous_partial_dead_store_simple_struct
10621062
/// CHECK: store
10631063
/// CHECK: store
10641064
sil hidden @discontiguous_partial_dead_store_simple_struct : $@convention(thin) (@inout S6) -> () {
@@ -1077,7 +1077,7 @@ bb0(%0 : $*S6):
10771077

10781078
/// Make sure we generate the store to field x first.
10791079
///
1080-
/// CHECK-LABEL : sil hidden @discontiguous_partial_dead_store_lives_insert_deterministically
1080+
/// CHECK-LABEL: sil hidden @discontiguous_partial_dead_store_lives_insert_deterministically
10811081
/// CHECK: bb0([[A:%.*]] : $*S6):
10821082
/// CHECK: [[IN:%.*]] = apply
10831083
/// CHECK: [[EXT1:%.*]] = struct_extract [[IN]] : $S6, #S6.x
@@ -1121,7 +1121,7 @@ bb0(%0 : $*S7):
11211121
/// i.e. too many stores generated, but make sure we track the store correctly
11221122
/// so that we can get rid of store %56 to %57 : $*Int.
11231123
///
1124-
/// CHECK-LABEL : partial_dead_store_bail_out_proper_propagation
1124+
/// CHECK-LABEL: partial_dead_store_bail_out_proper_propagation
11251125
/// CHECK: bb0
11261126
/// CHECK-NOT: {{ store}}
11271127
/// CHECK: function_ref

test/SILOptimizer/earlycodemotion.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ bb1: // Preds: bb0
13411341
// Make sure we were able to sink the release.
13421342
// CHECK: strong_release
13431343
// CHECK-NEXT: tuple ()
1344-
// CHECK-NEXT return
1344+
// CHECK-NEXT: return
13451345

13461346
bb2: // Preds: bb4 bb5
13471347
%5 = tuple () // user: %6

test/SILOptimizer/functionsigopts.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ bb0(%0 : $boo):
511511
// CHECK-LABEL: sil [serialized] [thunk] [always_inline] @owned_to_unowned_retval_with_error_result : $@convention(thin) (@owned boo) -> (@owned boo, @error Error) {
512512
// CHECK: function_ref @_T041owned_to_unowned_retval_with_error_resultTfq4n_g : $@convention(thin) (@owned boo) -> (boo, @error Error)
513513
// CHECK: bb1
514-
// CHECK-NOT retain_value
514+
// CHECK-NOT: retain_value
515515
// CHECK: bb2
516516
sil [serialized] @owned_to_unowned_retval_with_error_result : $@convention(thin) (@owned boo) -> (@owned boo, @error Error) {
517517
bb0(%0 : $boo):

test/SILOptimizer/mandatory_inlining.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func test_chained_short_circuit(_ x: Bool, y: Bool, z: Bool) -> Bool {
108108
// recursively inlined properly)
109109

110110
// CHECK-LABEL: sil hidden @_T018mandatory_inlining26test_chained_short_circuit{{[_0-9a-zA-Z]*}}F
111-
// CHECK-NOT = apply [transparent]
111+
// CHECK-NOT: = apply [transparent]
112112
// CHECK: return
113113

114114

@@ -122,7 +122,7 @@ func testInlineUnionElement() -> X {
122122
return X.onetransp
123123
// CHECK-LABEL: sil hidden @_T018mandatory_inlining22testInlineUnionElementAA1XOyF
124124
// CHECK: enum $X, #X.onetransp!enumelt
125-
// CHECK-NOT = apply
125+
// CHECK-NOT: = apply
126126
// CHECK: return
127127
}
128128

0 commit comments

Comments
 (0)