blob: 2794c5becdc80edf76558b31d432974669216967 [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