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