solidity/test/libyul/yulSyntaxTests/switch_statement_2.yul
2021-04-20 17:38:29 +02:00

10 lines
293 B
Plaintext

{
{ switch 42 case 1 {} }
{ switch 42 case 1 {} case 2 {} }
{ switch 42 case 1 {} default {} }
{ switch 42 case 1 {} case 2 {} default {} }
{ switch mul(1, 2) case 1 {} case 2 {} default {} }
{ function f() -> x {} switch f() case 1 {} case 2 {} default {} }
}
// ----