mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
There's a lot more work to do here, but start to categorize tests along the lines of what a specification might look like, with directories (chapters) for basic concepts, declarations, expressions, statements, etc. Swift SVN r9958
20 lines
314 B
Swift
20 lines
314 B
Swift
// RUN: %swift -i %s | FileCheck %s
|
|
// REQUIRES: swift_interpreter
|
|
|
|
def test() {
|
|
var d1 = Dictionary<String, Int>()
|
|
var d2 = Dictionary<String, Int>()
|
|
var d1_alias = d1
|
|
if d1 !== d2 {
|
|
println("good")
|
|
}
|
|
if d1 === d1_alias {
|
|
println("also good")
|
|
}
|
|
}
|
|
|
|
test()
|
|
|
|
// CHECK: good
|
|
// CHECK: also good
|