solidity/test/libyul/yulOptimizerTests/fullSuite/switch_inline_match_default.yul

14 lines
174 B
Plaintext
Raw Normal View History

{
2021-08-17 20:50:27 +00:00
sstore(f(3), 0)
function f(x) -> y {
switch x
case 0 { y := 8 }
case 1 { y := 9 }
default { y := 10 }
}
}
// ----
// step: fullSuite
//
2021-08-17 20:50:27 +00:00
// { { sstore(10, 0) } }