Files
swift-mirror/test/Interpreter/SDK/AnyObject_native_interop.swift
Joe Groff f1fa77e140 IRGen: Fix heap array destructor for types where size != stride.
Use TypeInfo::indexArray to get the bounds of the array instead of duplicating its logic incorrectly. Fixes <rdar://problem/16916422>.

Swift SVN r18115
2014-05-15 18:15:04 +00:00

19 lines
368 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 (has 0 children)
println(c.description!)
}
// CHECK-NEXT: dead