Files
swift-mirror/test/Interpreter/generic_tuple.swift
2016-08-10 23:52:02 -07:00

16 lines
304 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