mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In the lit.site.cfg, if a MODULES_SDK is available, add a '%sdk' substitution and enable REQUIRES: sdk tests. Add some tests under test/Interpreter/SDK to test some basic ObjC interop features. Swift SVN r4243
19 lines
279 B
Swift
19 lines
279 B
Swift
// RUN: %swift -sdk=%sdk -constraint-checker -i %s | FileCheck %s
|
|
// REQUIRES: sdk
|
|
|
|
import Foundation
|
|
|
|
var a : NSArray = ["one", 2, [1,2,3]]
|
|
|
|
// CHECK: one
|
|
// CHECK: 2
|
|
// CHECK: (
|
|
// CHECK: 1,
|
|
// CHECK: 2,
|
|
// CHECK: 3
|
|
// CHECK: )
|
|
|
|
for x in a {
|
|
println(x.description())
|
|
}
|