Files
swift-mirror/test/SILGen/switch_mixed_address_only_loadable.swift
Joe Groff 7adfc52447 SILGen: Emit bb args for shared loadable case bindings that come after address-only ones.
Looks like a think-o; even if we see an address-only binding in a shared pattern block, we still
expect bb args in the lowered basic block for anything that comes after it. rdar://problem/53956564
2019-08-06 15:09:01 -07:00

14 lines
231 B
Swift

// RUN: %target-swift-emit-silgen %s
// rdar://problem/53956564
func foo<T>(x: Int, y: T, z: Int) {
switch (x, y, z) {
case (let xx, let yy, let zz), (let xx, let yy, let zz):
_ = xx
_ = yy
_ = zz
break
}
}