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

21 lines
311 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
}
2019-04-01 14:33:46 +00:00
// ====
// step: redundantAssignEliminator
2018-10-23 13:55:48 +00:00
// ----
// {
// function f() -> a, b
// {
// }
// let x, y
// x, y := f()
// }