Skip to content

Commit 3a7a8ac

Browse files
committed
Demangle CHECK statements
1 parent 8c355af commit 3a7a8ac

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

test/Interop/Cxx/templates/template-instantiation-irgen.swift

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,46 +3,46 @@
33
import FunctionTemplates
44

55
func takesInt32(x: Int32) { takesValue(x) }
6-
// CHECK: define {{.*}} void @{{.*}}10takesInt32{{.*}}
6+
// CHECK: define {{.*}} void @{{.*}}takesInt32{{.*}}
77

88
func takesBool(x: Bool) { takesValue(x) }
9-
// CHECK: define {{.*}} void @{{.*}}9takesBool{{.*}}
9+
// CHECK: define {{.*}} void @{{.*}}takesBool{{.*}}
1010

1111
func takesTrue() { takesValue(true) }
12-
// CHECK: define {{.*}} void @{{.*}}9takesTrue{{.*}}
12+
// CHECK: define {{.*}} void @{{.*}}takesTrue{{.*}}
1313

1414
func takesFalse() { takesValue(false) }
15-
// CHECK: define {{.*}} void @{{.*}}10takesFalse{{.*}}
15+
// CHECK: define {{.*}} void @{{.*}}takesFalse{{.*}}
1616

1717
func takesPlainStruct(x: PlainStruct) { takesValue(x) }
18-
// CHECK: define {{.*}} void @{{.*}}16takesPlainStruct{{.*}}
18+
// CHECK: define {{.*}} void @{{.*}}takesPlainStruct{{.*}}
1919

2020
func takesCxxClass(x: CxxClass) { takesValue(x) }
21-
// CHECK: define {{.*}} void @{{.*}}13takesCxxClass{{.*}}
21+
// CHECK: define {{.*}} void @{{.*}}takesCxxClass{{.*}}
2222

2323
func takesFRT(x: FRT) { takesValue(x) }
24-
// CHECK: define {{.*}} void @{{.*}}8takesFRT{{.*}}
24+
// CHECK: define {{.*}} void @{{.*}}takesFRT{{.*}}
2525

2626
func takesSIMD(x: SIMD32<Int32>) { takesValue(x) }
27-
// CHECK: define {{.*}} void @{{.*}}9takesSIMD{{.*}}
27+
// CHECK: define {{.*}} void @{{.*}}takesSIMD{{.*}}
2828

2929
func takesPtrToStruct(x: UnsafePointer<PlainStruct>) { takesValue(x) }
30-
// CHECK: define {{.*}} void @{{.*}}16takesPtrToStruct{{.*}}
30+
// CHECK: define {{.*}} void @{{.*}}takesPtrToStruct{{.*}}
3131

3232
func takesPtrToClass(x: UnsafePointer<CxxClass>) { takesValue(x) }
33-
// CHECK: define {{.*}} void @{{.*}}15takesPtrToClass{{.*}}
33+
// CHECK: define {{.*}} void @{{.*}}takesPtrToClass{{.*}}
3434

3535
func takesPtrToFRT(x: UnsafePointer<FRT>) { takesValue(x) }
36-
// CHECK: define {{.*}} void @{{.*}}13takesPtrToFRT{{.*}}
36+
// CHECK: define {{.*}} void @{{.*}}takesPtrToFRT{{.*}}
3737

3838
func takesMutPtrToStruct(x: UnsafeMutablePointer<PlainStruct>) { takesValue(x) }
39-
// CHECK: define {{.*}} void @{{.*}}19takesMutPtrToStruct{{.*}}
39+
// CHECK: define {{.*}} void @{{.*}}takesMutPtrToStruct{{.*}}
4040

4141
func takesMutPtrToClass(x: UnsafeMutablePointer<CxxClass>) { takesValue(x) }
42-
// CHECK: define {{.*}} void @{{.*}}18takesMutPtrToClass{{.*}}
42+
// CHECK: define {{.*}} void @{{.*}}takesMutPtrToClass{{.*}}
4343

4444
func takesMutPtrToFRT(x: UnsafeMutablePointer<FRT>) { takesValue(x) }
45-
// CHECK: define {{.*}} void @{{.*}}16takesMutPtrToFRT{{.*}}
45+
// CHECK: define {{.*}} void @{{.*}}takesMutPtrToFRT{{.*}}
4646

4747
// TODO: optional pointers are not yet supported but they should be
4848
// func takesCPtr() { takesValue(intPtr) }

0 commit comments

Comments
 (0)