solidity/test/libyul/yulOptimizerTests/redundantAssignEliminator/multi_assign.yul
2018-10-24 13:24:25 +02:00

20 lines
297 B
Plaintext

{
function f() -> a, b {}
let x, y
x := 1
x := 2
// Will not be used, but is a multi-assign, so not removed.
x, y := f()
x := 3
y := 4
}
// ----
// redundantAssignEliminator
// {
// function f() -> a, b
// {
// }
// let x, y
// x, y := f()
// }