Files
swift-mirror/test/Interpreter/object.swift
Doug Gregor faf1c45d14 Shuffle the files in the testsuite a bit to try to reflect language structure.
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
2013-11-05 15:12:57 +00:00

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