solidity/test/libyul/yulOptimizerTests/unusedAssignEliminator/multi_assign.yul
2021-11-23 14:58:04 +01:00

20 lines
296 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
}
// ----
// step: unusedAssignEliminator
//
// {
// function f() -> a, b
// { }
// let x, y
// x, y := f()
// }