solidity/test/libyul/yulOptimizerTests/redundantAssignEliminator/switch_unused.yul

16 lines
242 B
Plaintext
Raw Normal View History

2018-10-23 13:55:48 +00:00
{
let x
// Not referenced anywhere.
x := 1
switch calldataload(0)
case 0 { mstore(0, 1) }
}
// ----
// step: redundantAssignEliminator
//
2018-10-23 13:55:48 +00:00
// {
// let x
// switch calldataload(0)
// case 0 { mstore(0, 1) }
2018-10-23 13:55:48 +00:00
// }