@@ -61,6 +61,7 @@ func nonPointerBits(_ x: Builtin.BridgeObject) -> UInt {
61
61
62
62
// Try without any bits set.
63
63
if true {
64
+ print ( " No bits set " ) // CHECK-NEXT: No bits set
64
65
let x = C ( )
65
66
let bo = Builtin . castToBridgeObject ( x, 0 . _builtinWordValue)
66
67
let bo2 = bo
@@ -88,6 +89,7 @@ if true {
88
89
89
90
// Try with all spare bits set.
90
91
if true {
92
+ print ( " All spare bits set " ) // CHECK-NEXT: All spare bits set
91
93
let x = C ( )
92
94
let bo = Builtin . castToBridgeObject ( x, NATIVE_SPARE_BITS . _builtinWordValue)
93
95
@@ -126,6 +128,7 @@ func nonNativeBridgeObject(_ o: AnyObject) -> Builtin.BridgeObject {
126
128
// Try with a (probably) tagged pointer. No bits may be masked into a
127
129
// non-native object.
128
130
if true {
131
+ print ( " Tagged pointer " ) // CHECK-NEXT: Tagged pointer
129
132
let x = NSNumber ( value: 22 )
130
133
let bo = nonNativeBridgeObject ( x)
131
134
let bo2 = bo
@@ -148,6 +151,7 @@ var unTaggedString: NSString {
148
151
149
152
// Try with an un-tagged pointer.
150
153
if true {
154
+ print ( " Untagged pointer " ) // CHECK-NEXT: Untagged pointer
151
155
let x = unTaggedString
152
156
let bo = nonNativeBridgeObject ( x)
153
157
let bo2 = bo
@@ -184,6 +188,8 @@ func hitOptionalSpecifically(_ x: Builtin.BridgeObject?) {
184
188
}
185
189
186
190
if true {
191
+ print ( " BridgeObject " ) // CHECK-NEXT: BridgeObject
192
+
187
193
// CHECK-NEXT: true
188
194
print ( MemoryLayout< Optional< Builtin . BridgeObject>>. size
189
195
== MemoryLayout< Builtin . BridgeObject> . size)
0 commit comments