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

18 lines
267 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 0 { }
case 1 { y := 9 }
default { y := 100 }
}
// ----
// step: structuralSimplifier
//
2019-03-05 18:49:34 +00:00
// {
// let y := 200
// switch calldataload(0)
// case 0 { }
// case 1 { y := 9 }
// default { y := 100 }
2019-03-05 18:49:34 +00:00
// }