mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These tests require the ObjC Foundation framework currently (although it should be possible have them use the swift corelibs Foundation project to satisfy this requirement). Marking the tests indicates that these tests do not have the dependencies to run on Windows.
19 lines
296 B
Swift
19 lines
296 B
Swift
// RUN: %target-run-simple-swift | %FileCheck %s
|
|
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: objc_interop
|
|
|
|
import Foundation
|
|
|
|
func vf(_ params: CVarArg...) {
|
|
print("OK")
|
|
}
|
|
|
|
var a: [AnyObject]! = ["a" as NSString]
|
|
var s: String! = "s"
|
|
|
|
vf(a as NSArray)
|
|
// CHECK: OK
|
|
vf(s as NSString)
|
|
// CHECK: OK
|