blob: 8a913c70574198b4379617f9abfaebe06f31194f [file] [log] [blame]
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
public func snd<T, U>(_ t : (T, U)) -> U {
let (_, y) = t
return y
}
// Test that the alloc_stack's argument number is preserved.
// CHECK-NOT: !DILocalVariable(name: "t"
// CHECK: !DILocalVariable(name: "t", arg: 1
// CHECK-NOT: !DILocalVariable(name: "t"