@@ -63,6 +63,7 @@ func nonPointerBits(_ x: Builtin.BridgeObject) -> UInt {
6363
6464// Try without any bits set.
6565if true {
66+ print ( " No bits set " ) // CHECK: No bits set
6667 let x = C ( )
6768 let bo = Builtin . castToBridgeObject ( x, 0 . _builtinWordValue)
6869 let bo2 = bo
@@ -90,6 +91,7 @@ if true {
9091
9192// Try with all spare bits set.
9293if true {
94+ print ( " All spare bits set " ) // CHECK: All spare bits set
9395 let x = C ( )
9496 let bo = Builtin . castToBridgeObject ( x, NATIVE_SPARE_BITS . _builtinWordValue)
9597
@@ -128,6 +130,7 @@ func nonNativeBridgeObject(_ o: AnyObject) -> Builtin.BridgeObject {
128130// Try with a (probably) tagged pointer. No bits may be masked into a
129131// non-native object.
130132if true {
133+ print ( " Tagged pointer " ) // CHECK: Tagged pointer
131134 let x = NSNumber ( value: 22 )
132135 let bo = nonNativeBridgeObject ( x)
133136 let bo2 = bo
@@ -159,6 +162,7 @@ var unTaggedString: NSString {
159162
160163// Try with an un-tagged pointer.
161164if true {
165+ print ( " Untagged pointer " ) // CHECK: Untagged pointer
162166 let x = unTaggedString
163167 let bo = nonNativeBridgeObject ( x)
164168 let bo2 = bo
@@ -195,6 +199,8 @@ func hitOptionalSpecifically(_ x: Builtin.BridgeObject?) {
195199}
196200
197201if true {
202+ print ( " BridgeObject " ) // CHECK: BridgeObject
203+
198204 // CHECK-NEXT: true
199205 print ( MemoryLayout< Optional< Builtin . BridgeObject>>. size
200206 == MemoryLayout< Builtin . BridgeObject> . size)
0 commit comments