Files
swift-mirror/test/Interpreter/varargs.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

18 lines
248 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// XFAIL: linux
import Foundation
func vf(params: CVarArgType...) {
println("OK")
}
var a: [AnyObject]! = ["a"]
var s: String! = "s"
vf(a as NSArray)
// CHECK: OK
vf(s as NSString)
// CHECK: OK