solidity/test/libyul/yulOptimizerTests/structuralSimplifier/switch_remove_empty_default_case.yul

20 lines
273 B
Plaintext
Raw Normal View History

2019-03-05 18:49:34 +00:00
{
let y := 200
switch calldataload(0)
2019-03-05 18:49:34 +00:00
case 1 { y := 9 }
case 2 { y := 10 }
2019-03-05 18:49:34 +00:00
default { }
}
// ----
// structuralSimplifier
// {
// let y := 200
// switch calldataload(0)
// case 1 {
2019-03-05 18:49:34 +00:00
// y := 9
// }
// case 2 {
// y := 10
// }
2019-03-05 18:49:34 +00:00
// }