Files
swift-mirror/test/Interpreter/SDK/objc_protocol_lookup.swift
Graham Batty 198402dcfe Mark tests that don't pass on linux as XFAIL.
Swift SVN r23573
2014-11-24 17:40:37 +00:00

39 lines
617 B
Swift

// Check JIT mode
// RUN: %swift -sdk %sdk -interpret %s | FileCheck %s
// REQUIRES: swift_interpreter
// XFAIL: linux
import Foundation
@objc protocol Fungible: Runcible {
func funge()
}
@objc protocol Runcible {
func runce()
}
class C: Fungible {
func runce() {}
func funge() {}
}
class D {}
extension D: Fungible {
func runce() {}
func funge() {}
}
extension NSString: Fungible {
func runce() {}
func funge() {}
}
func check(x: AnyObject) {
println("\(x is Fungible) \(x is Runcible)")
}
check(NSString()) // CHECK: true true
check(C()) // CHECK: true true
check(D()) // CHECK: true true