Files
swift-mirror/test/Interpreter/SDK/AnyObject_native_interop.swift
Arnold Schwaighofer 859fbc0162 More executable_test for the test directory
Swift SVN r29280
2015-06-03 23:28:51 +00:00

22 lines
410 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// REQUIRES: executable_test
// REQUIRES: objc_interop
// Test interop of pure Swift objects as ObjC objects accessed through AnyObject.
import Foundation
class FullyNative {
deinit { print("dead") }
}
autoreleasepool {
let c: AnyObject = FullyNative() as AnyObject
// CHECK: {{^}}main.FullyNative{{$}}
print(c.description!)
}
// CHECK-NEXT: dead