Files
swift-mirror/test/Interpreter/generic_tuple.swift
Ted Kremenek fad874708e Adjust test cases.
Swift SVN r17964
2014-05-12 22:01:52 +00:00

15 lines
272 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// <rdar://problem/13995785> We were using the wrong type metadata pointer for the empty
// tuple.
func dup<T>(x: T) -> (T, T) {
return (x, x)
}
func drop<T>(x: T) {}
var x = ()
drop(dup(x))
println("ok") // CHECK: ok