Skip to content

Commit 299cf29

Browse files
committed
[test] Add missing colons for FileCheck
1 parent 0b580f7 commit 299cf29

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()

0 commit comments

Comments
 (0)