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

19 lines
293 B
Plaintext

{
let x
// Will NOT be overwritten in all branches
x := 1
switch calldataload(0)
case 0 { x := 2 }
mstore(x, 0)
}
// ----
// step: unusedAssignEliminator
//
// {
// let x
// x := 1
// switch calldataload(0)
// case 0 { x := 2 }
// mstore(x, 0)
// }