Files
swift-mirror/test/Interpreter/SDK/AnyObject_native_interop.swift
Enrico Granata 3dfff3a34d Fix tests that were broken by my last changes.
Swift SVN r19818
2014-07-10 19:15:38 +00:00

19 lines
351 B
Swift

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