mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
23 lines
354 B
Plaintext
23 lines
354 B
Plaintext
|
{
|
||
|
let x
|
||
|
// Will be overwritten in all branches
|
||
|
x := 1
|
||
|
switch calldataload(0)
|
||
|
case 0 { x := 2 }
|
||
|
default { x := 3 }
|
||
|
mstore(x, 0)
|
||
|
}
|
||
|
// ----
|
||
|
// redundantAssignEliminator
|
||
|
// {
|
||
|
// let x
|
||
|
// switch calldataload(0)
|
||
|
// case 0 {
|
||
|
// x := 2
|
||
|
// }
|
||
|
// default {
|
||
|
// x := 3
|
||
|
// }
|
||
|
// mstore(x, 0)
|
||
|
// }
|