@@ -12,58 +12,58 @@ import CountedByClang
12
12
13
13
14
14
// CHECK: /// This is an auto-generated wrapper for safer interop
15
- // CHECK-NEXT: @_alwaysEmitIntoClient public func bitshift(_ m: Int32, _ n: Int32, _ o: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
15
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func bitshift(_ m: Int32, _ n: Int32, _ o: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
16
16
17
17
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
18
- // CHECK-NEXT: @_alwaysEmitIntoClient public func bitwise(_ m: Int32, _ n: Int32, _ o: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
18
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func bitwise(_ m: Int32, _ n: Int32, _ o: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
19
19
20
20
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
21
- // CHECK-NEXT: @_alwaysEmitIntoClient public func complexExpr(_ len: Int{{.*}}, _ offset: Int{{.*}}, _ p: UnsafeMutableBufferPointer<Int{{.*}}>)
21
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func complexExpr(_ len: Int{{.*}}, _ offset: Int{{.*}}, _ p: UnsafeMutableBufferPointer<Int{{.*}}>)
22
22
23
23
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
24
- // CHECK-NEXT: @_alwaysEmitIntoClient public func constFloatCastedToInt(_ p: UnsafeMutableBufferPointer<Int32>)
24
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func constFloatCastedToInt(_ p: UnsafeMutableBufferPointer<Int32>)
25
25
26
26
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
27
- // CHECK-NEXT: @_alwaysEmitIntoClient public func constInt(_ p: UnsafeMutableBufferPointer<Int32>)
27
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func constInt(_ p: UnsafeMutableBufferPointer<Int32>)
28
28
29
29
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
30
- // CHECK-NEXT: @_alwaysEmitIntoClient public func nonnull(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
30
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func nonnull(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
31
31
32
32
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
33
- // CHECK-NEXT: @_alwaysEmitIntoClient public func nullUnspecified(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
33
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func nullUnspecified(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
34
34
35
35
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
36
- // CHECK-NEXT: @_alwaysEmitIntoClient public func nullable(_ p: UnsafeMutableBufferPointer<Int{{.*}}>?)
36
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func nullable(_ p: UnsafeMutableBufferPointer<Int{{.*}}>?)
37
37
38
38
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
39
- // CHECK-NEXT: @_alwaysEmitIntoClient public func offByOne(_ len: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
39
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func offByOne(_ len: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
40
40
41
41
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
42
- // CHECK-NEXT: @_alwaysEmitIntoClient public func offBySome(_ len: Int32, _ offset: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
42
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func offBySome(_ len: Int32, _ offset: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
43
43
44
44
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
45
45
// CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func returnPointer(_ len: Int{{.*}}) -> UnsafeMutableBufferPointer<Int{{.*}}>
46
46
47
47
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
48
- // CHECK-NEXT: @_alwaysEmitIntoClient public func scalar(_ m: Int32, _ n: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
48
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func scalar(_ m: Int32, _ n: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
49
49
50
50
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
51
- // CHECK-NEXT: @_alwaysEmitIntoClient public func shared(_ len: Int{{.*}}, _ p1: UnsafeMutableBufferPointer<Int{{.*}}>, _ p2: UnsafeMutableBufferPointer<Int{{.*}}>)
51
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func shared(_ len: Int{{.*}}, _ p1: UnsafeMutableBufferPointer<Int{{.*}}>, _ p2: UnsafeMutableBufferPointer<Int{{.*}}>)
52
52
53
53
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
54
- // CHECK-NEXT: @_alwaysEmitIntoClient public func simple(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
54
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func simple(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
55
55
56
56
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
57
- // CHECK-NEXT: @_alwaysEmitIntoClient public func simpleFlipped(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
57
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func simpleFlipped(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
58
58
59
59
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
60
- // CHECK-NEXT: @_alwaysEmitIntoClient public func sizeofParam(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
60
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func sizeofParam(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
61
61
62
62
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
63
- // CHECK-NEXT: @_alwaysEmitIntoClient public func sizeofType(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
63
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func sizeofType(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
64
64
65
65
// CHECK-NEXT: /// This is an auto-generated wrapper for safer interop
66
- // CHECK-NEXT: @_alwaysEmitIntoClient public func swiftAttr(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
66
+ // CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func swiftAttr(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
67
67
68
68
@inlinable
69
69
public func callComplexExpr( _ p: UnsafeMutableBufferPointer < CInt > ) {
@@ -116,6 +116,18 @@ public func callSimple(_ p: UnsafeMutableBufferPointer<CInt>) {
116
116
simple ( p)
117
117
}
118
118
119
+ @inlinable
120
+ public func callSimpleIndirectOriginal( _ p: UnsafeMutablePointer < CInt > ) {
121
+ let f = simple
122
+ f ( 13 , p)
123
+ }
124
+
125
+ @inlinable
126
+ public func callSimpleIndirectOverload( _ p: UnsafeMutableBufferPointer < CInt > ) {
127
+ let f : ( UnsafeMutableBufferPointer < CInt > ) -> Void = simple
128
+ f ( p)
129
+ }
130
+
119
131
@inlinable
120
132
public func callSimpleFlipped( _ p: UnsafeMutableBufferPointer < CInt > ) {
121
133
simpleFlipped ( p)
@@ -124,4 +136,4 @@ public func callSimpleFlipped(_ p: UnsafeMutableBufferPointer<CInt>) {
124
136
@inlinable
125
137
public func callSwiftAttr( _ p: UnsafeMutableBufferPointer < CInt > ) {
126
138
swiftAttr ( p)
127
- }
139
+ }
0 commit comments