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

20 lines
305 B
Plaintext

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