|
3 | 3 | import FunctionTemplates
|
4 | 4 |
|
5 | 5 | func takesInt32(x: Int32) { takesValue(x) }
|
6 |
| -// CHECK: define {{.*}} void @{{.*}}10takesInt32{{.*}} |
| 6 | +// CHECK: define {{.*}} void @{{.*}}takesInt32{{.*}} |
7 | 7 |
|
8 | 8 | func takesBool(x: Bool) { takesValue(x) }
|
9 |
| -// CHECK: define {{.*}} void @{{.*}}9takesBool{{.*}} |
| 9 | +// CHECK: define {{.*}} void @{{.*}}takesBool{{.*}} |
10 | 10 |
|
11 | 11 | func takesTrue() { takesValue(true) }
|
12 |
| -// CHECK: define {{.*}} void @{{.*}}9takesTrue{{.*}} |
| 12 | +// CHECK: define {{.*}} void @{{.*}}takesTrue{{.*}} |
13 | 13 |
|
14 | 14 | func takesFalse() { takesValue(false) }
|
15 |
| -// CHECK: define {{.*}} void @{{.*}}10takesFalse{{.*}} |
| 15 | +// CHECK: define {{.*}} void @{{.*}}takesFalse{{.*}} |
16 | 16 |
|
17 | 17 | func takesPlainStruct(x: PlainStruct) { takesValue(x) }
|
18 |
| -// CHECK: define {{.*}} void @{{.*}}16takesPlainStruct{{.*}} |
| 18 | +// CHECK: define {{.*}} void @{{.*}}takesPlainStruct{{.*}} |
19 | 19 |
|
20 | 20 | func takesCxxClass(x: CxxClass) { takesValue(x) }
|
21 |
| -// CHECK: define {{.*}} void @{{.*}}13takesCxxClass{{.*}} |
| 21 | +// CHECK: define {{.*}} void @{{.*}}takesCxxClass{{.*}} |
22 | 22 |
|
23 | 23 | func takesFRT(x: FRT) { takesValue(x) }
|
24 |
| -// CHECK: define {{.*}} void @{{.*}}8takesFRT{{.*}} |
| 24 | +// CHECK: define {{.*}} void @{{.*}}takesFRT{{.*}} |
25 | 25 |
|
26 | 26 | func takesSIMD(x: SIMD32<Int32>) { takesValue(x) }
|
27 |
| -// CHECK: define {{.*}} void @{{.*}}9takesSIMD{{.*}} |
| 27 | +// CHECK: define {{.*}} void @{{.*}}takesSIMD{{.*}} |
28 | 28 |
|
29 | 29 | func takesPtrToStruct(x: UnsafePointer<PlainStruct>) { takesValue(x) }
|
30 |
| -// CHECK: define {{.*}} void @{{.*}}16takesPtrToStruct{{.*}} |
| 30 | +// CHECK: define {{.*}} void @{{.*}}takesPtrToStruct{{.*}} |
31 | 31 |
|
32 | 32 | func takesPtrToClass(x: UnsafePointer<CxxClass>) { takesValue(x) }
|
33 |
| -// CHECK: define {{.*}} void @{{.*}}15takesPtrToClass{{.*}} |
| 33 | +// CHECK: define {{.*}} void @{{.*}}takesPtrToClass{{.*}} |
34 | 34 |
|
35 | 35 | func takesPtrToFRT(x: UnsafePointer<FRT>) { takesValue(x) }
|
36 |
| -// CHECK: define {{.*}} void @{{.*}}13takesPtrToFRT{{.*}} |
| 36 | +// CHECK: define {{.*}} void @{{.*}}takesPtrToFRT{{.*}} |
37 | 37 |
|
38 | 38 | func takesMutPtrToStruct(x: UnsafeMutablePointer<PlainStruct>) { takesValue(x) }
|
39 |
| -// CHECK: define {{.*}} void @{{.*}}19takesMutPtrToStruct{{.*}} |
| 39 | +// CHECK: define {{.*}} void @{{.*}}takesMutPtrToStruct{{.*}} |
40 | 40 |
|
41 | 41 | func takesMutPtrToClass(x: UnsafeMutablePointer<CxxClass>) { takesValue(x) }
|
42 |
| -// CHECK: define {{.*}} void @{{.*}}18takesMutPtrToClass{{.*}} |
| 42 | +// CHECK: define {{.*}} void @{{.*}}takesMutPtrToClass{{.*}} |
43 | 43 |
|
44 | 44 | func takesMutPtrToFRT(x: UnsafeMutablePointer<FRT>) { takesValue(x) }
|
45 |
| -// CHECK: define {{.*}} void @{{.*}}16takesMutPtrToFRT{{.*}} |
| 45 | +// CHECK: define {{.*}} void @{{.*}}takesMutPtrToFRT{{.*}} |
46 | 46 |
|
47 | 47 | // TODO: optional pointers are not yet supported but they should be
|
48 | 48 | // func takesCPtr() { takesValue(intPtr) }
|
|
0 commit comments