@@ -63,6 +63,7 @@ func nonPointerBits(_ x: Builtin.BridgeObject) -> UInt {
63
63
64
64
// Try without any bits set.
65
65
if true {
66
+ print ( " No bits set " ) // CHECK: No bits set
66
67
let x = C ( )
67
68
let bo = Builtin . castToBridgeObject ( x, 0 . _builtinWordValue)
68
69
let bo2 = bo
@@ -90,6 +91,7 @@ if true {
90
91
91
92
// Try with all spare bits set.
92
93
if true {
94
+ print ( " All spare bits set " ) // CHECK: All spare bits set
93
95
let x = C ( )
94
96
let bo = Builtin . castToBridgeObject ( x, NATIVE_SPARE_BITS . _builtinWordValue)
95
97
@@ -128,6 +130,7 @@ func nonNativeBridgeObject(_ o: AnyObject) -> Builtin.BridgeObject {
128
130
// Try with a (probably) tagged pointer. No bits may be masked into a
129
131
// non-native object.
130
132
if true {
133
+ print ( " Tagged pointer " ) // CHECK: Tagged pointer
131
134
let x = NSNumber ( value: 22 )
132
135
let bo = nonNativeBridgeObject ( x)
133
136
let bo2 = bo
@@ -159,6 +162,7 @@ var unTaggedString: NSString {
159
162
160
163
// Try with an un-tagged pointer.
161
164
if true {
165
+ print ( " Untagged pointer " ) // CHECK: Untagged pointer
162
166
let x = unTaggedString
163
167
let bo = nonNativeBridgeObject ( x)
164
168
let bo2 = bo
@@ -195,6 +199,8 @@ func hitOptionalSpecifically(_ x: Builtin.BridgeObject?) {
195
199
}
196
200
197
201
if true {
202
+ print ( " BridgeObject " ) // CHECK: BridgeObject
203
+
198
204
// CHECK-NEXT: true
199
205
print ( MemoryLayout< Optional< Builtin . BridgeObject>>. size
200
206
== MemoryLayout< Builtin . BridgeObject> . size)
0 commit comments