solidity/test/libyul/yulOptimizerTests/redundantAssignEliminator/multi_assign.yul

20 lines
297 B
Plaintext
Raw Normal View History

2018-10-23 13:55:48 +00:00
{
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()
// }