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

16 lines
176 B
Plaintext
Raw Normal View History

2019-03-05 18:49:34 +00:00
{
let y := 200
switch y
case 0 { }
case 1 { y := 9 }
}
// ----
// structuralSimplifier
// {
// let y := 200
2019-03-06 10:33:27 +00:00
// if eq(1, y)
// {
2019-03-05 18:49:34 +00:00
// y := 9
// }
// }