mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
16 lines
299 B
Swift
16 lines
299 B
Swift
// 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
|