Files
swift-mirror/test/Interpreter/SDK/objc_unowned.swift

15 lines
271 B
Swift

// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: objc_interop
import Foundation
_ = JSONDecoder()
let x = NSObject()
unowned let y = x
print(y) // CHECK: <NSObject: [[ID:.*]]>
print(x) // CHECK-NEXT: <NSObject: [[ID]]>