1010
1111import CountedByClang
1212
13- // CHECK: @_alwaysEmitIntoClient public func complexExpr(_ len: Int{{.*}}, _ offset: Int{{.*}}, _ p: UnsafeMutableBufferPointer<Int{{.*}}>)
13+ // CHECK: @_alwaysEmitIntoClient public func bitshift(_ m: Int32, _ n: Int32, _ o: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
14+ // CHECK-NEXT: @_alwaysEmitIntoClient public func bitwise(_ m: Int32, _ n: Int32, _ o: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
15+ // CHECK-NEXT: @_alwaysEmitIntoClient public func complexExpr(_ len: Int{{.*}}, _ offset: Int{{.*}}, _ p: UnsafeMutableBufferPointer<Int{{.*}}>)
16+ // CHECK-NEXT: @_alwaysEmitIntoClient public func constFloatCastedToInt(_ p: UnsafeMutableBufferPointer<Int32>)
17+ // CHECK-NEXT: @_alwaysEmitIntoClient public func constInt(_ p: UnsafeMutableBufferPointer<Int32>)
1418// CHECK-NEXT: @_alwaysEmitIntoClient public func nonnull(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
1519// CHECK-NEXT: @_alwaysEmitIntoClient public func nullUnspecified(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
1620// CHECK-NEXT: @_alwaysEmitIntoClient public func nullable(_ p: UnsafeMutableBufferPointer<Int{{.*}}>?)
21+ // CHECK-NEXT: @_alwaysEmitIntoClient public func offByOne(_ len: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
22+ // CHECK-NEXT: @_alwaysEmitIntoClient public func offBySome(_ len: Int32, _ offset: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
1723// CHECK-NEXT: @_alwaysEmitIntoClient @_disfavoredOverload public func returnPointer(_ len: Int{{.*}}) -> UnsafeMutableBufferPointer<Int{{.*}}>
24+ // CHECK-NEXT: @_alwaysEmitIntoClient public func scalar(_ m: Int32, _ n: Int32, _ p: UnsafeMutableBufferPointer<Int32>)
1825// CHECK-NEXT: @_alwaysEmitIntoClient public func shared(_ len: Int{{.*}}, _ p1: UnsafeMutableBufferPointer<Int{{.*}}>, _ p2: UnsafeMutableBufferPointer<Int{{.*}}>)
1926// CHECK-NEXT: @_alwaysEmitIntoClient public func simple(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
27+ // CHECK-NEXT: @_alwaysEmitIntoClient public func simpleFlipped(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
28+ // CHECK-NEXT: @_alwaysEmitIntoClient public func sizeofParam(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
29+ // CHECK-NEXT: @_alwaysEmitIntoClient public func sizeofType(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
2030// CHECK-NEXT: @_alwaysEmitIntoClient public func swiftAttr(_ p: UnsafeMutableBufferPointer<Int{{.*}}>)
2131
2232@inlinable
2333public func callComplexExpr( _ p: UnsafeMutableBufferPointer < CInt > ) {
2434 complexExpr ( CInt ( p. count) , 1 , p)
2535}
2636
37+ @inlinable
38+ public func callConstInt( _ p: UnsafeMutableBufferPointer < CInt > ) {
39+ constInt ( p)
40+ }
41+
2742@inlinable
2843public func callNonnull( _ p: UnsafeMutableBufferPointer < CInt > ) {
2944 nonnull ( p)
@@ -39,12 +54,22 @@ public func callNullable(_ p: UnsafeMutableBufferPointer<CInt>?) {
3954 nullable ( p)
4055}
4156
57+ @inlinable
58+ public func callOffByOne( _ p: UnsafeMutableBufferPointer < CInt > ) {
59+ offByOne ( 0 , p)
60+ }
61+
4262@inlinable
4363public func callReturnPointer( ) {
4464 let a : UnsafeMutableBufferPointer < CInt > ? = returnPointer ( 4 ) // call wrapper
4565 let b : UnsafeMutablePointer < CInt > ? = returnPointer ( 4 ) // call unsafe interop
4666}
4767
68+ @inlinable
69+ public func callScalar( _ p: UnsafeMutableBufferPointer < CInt > ) {
70+ scalar ( 4 , 2 , p)
71+ }
72+
4873@inlinable
4974public func callShared( _ p: UnsafeMutableBufferPointer < CInt > , _ p2: UnsafeMutableBufferPointer < CInt > ) {
5075 shared ( CInt ( p. count) , p, p2)
@@ -55,6 +80,11 @@ public func callSimple(_ p: UnsafeMutableBufferPointer<CInt>) {
5580 simple ( p)
5681}
5782
83+ @inlinable
84+ public func callSimpleFlipped( _ p: UnsafeMutableBufferPointer < CInt > ) {
85+ simpleFlipped ( p)
86+ }
87+
5888@inlinable
5989public func callSwiftAttr( _ p: UnsafeMutableBufferPointer < CInt > ) {
6090 swiftAttr ( p)
0 commit comments