blob: fdaba049a852da34614c904efc62846b4e6d4d46 [file] [log] [blame]
// RUN: %target-run-simple-swift | %FileCheck %s
// REQUIRES: executable_test
// <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))
print("ok") // CHECK: ok