5
5
6
6
import SwiftReflectionTest
7
7
import Foundation
8
+ import CoreGraphics
8
9
9
- func capturesImportedTypes( x: Int , n: NSURL , r: NSRect , c: NSCoding ) {
10
+ func capturesImportedTypes( x: Int , n: NSURL , r: CGRect , c: NSCoding ) {
10
11
reflect ( function: { print ( x) ; print ( n) ; print ( r) ; print ( c) } )
11
12
12
13
// CHECK-32: Type reference:
13
14
// CHECK-32-NEXT: (builtin Builtin.NativeObject)
14
15
15
16
// CHECK-32: Type info:
16
- // CHECK-32-NEXT: (closure_context size=60 alignment=8 stride=60 num_extra_inhabitants=0
17
+ // CHECK-32-NEXT: (closure_context size=40 alignment=4 stride=40 num_extra_inhabitants=0
17
18
// CHECK-32-NEXT: (field offset=12
18
19
// CHECK-32-NEXT: (struct size=4 alignment=4 stride=4 num_extra_inhabitants=0
19
20
// CHECK-32-NEXT: (field name=_value offset=0
20
21
// CHECK-32-NEXT: (builtin size=4 alignment=4 stride=4 num_extra_inhabitants=0))))
21
22
// CHECK-32-NEXT: (field offset=16
22
23
// CHECK-32-NEXT: (reference kind=strong refcounting=unknown))
23
- // CHECK-32-NEXT: (field offset=24
24
- // CHECK-32-NEXT: (builtin size=32 alignment=8 stride=32 num_extra_inhabitants=0))
25
- // CHECK-32-NEXT: (field offset=56
24
+ // CHECK-32-NEXT: (field offset=20
25
+ // CHECK-32-NEXT: (builtin size=16 alignment=4 stride=16 num_extra_inhabitants=0))
26
+ // CHECK-32-NEXT: (field offset=36
26
27
// CHECK-32-NEXT: (reference kind=strong refcounting=unknown)))
27
28
28
29
// CHECK-64: Type reference:
@@ -42,6 +43,6 @@ func capturesImportedTypes(x: Int, n: NSURL, r: NSRect, c: NSCoding) {
42
43
// CHECK-64-NEXT: (reference kind=strong refcounting=unknown)))
43
44
}
44
45
45
- capturesImportedTypes ( x: 10 , n: NSURL ( ) , r: NSRect ( x: 1 , y: 2 , width: 3 , height: 4 ) , c: " " as NSString )
46
+ capturesImportedTypes ( x: 10 , n: NSURL ( ) , r: CGRect ( x: 1 , y: 2 , width: 3 , height: 4 ) , c: " " as NSString )
46
47
47
48
doneReflecting ( )
0 commit comments