solidity/test/libyul/yulOptimizerTests/fullSuite/switch_inline_match_default.yul
2021-10-13 17:56:43 +02:00

14 lines
174 B
Plaintext

{
sstore(f(3), 0)
function f(x) -> y {
switch x
case 0 { y := 8 }
case 1 { y := 9 }
default { y := 10 }
}
}
// ----
// step: fullSuite
//
// { { sstore(10, 0) } }