Files
swift-mirror/test/Interpreter/SDK/AnyObject_native_interop.swift
Graham Batty 83b4384fac Update test flags for linux failures and support.
Also removed the sdk 'feature' in favour of the more specific
objc_interop.

Swift SVN r24856
2015-01-30 21:31:48 +00:00

21 lines
385 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// REQUIRES: objc_interop
// 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: {{^}}main.FullyNative{{$}}
println(c.description!)
}
// CHECK-NEXT: dead