Files
swift-mirror/test/Interpreter/generic_tuple.swift
Arnold Schwaighofer 859fbc0162 More executable_test for the test directory
Swift SVN r29280
2015-06-03 23:28:51 +00:00

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