solidity/test/libyul/yulInterpreterTests/switch_statement.yul

14 lines
411 B
Plaintext
Raw Normal View History

2018-02-08 17:20:54 +00:00
{
switch 7
case 7 { mstore(1, 2) }
case 3 { mstore(6, 7) }
default { mstore(8, 9) }
}
// ----
// Trace:
// MSTORE_AT_SIZE(1, 32) [0000000000000000000000000000000000000000000000000000000000000002]
// Memory dump:
// 0: 0000000000000000000000000000000000000000000000000000000000000000
// 20: 0200000000000000000000000000000000000000000000000000000000000000
// Storage dump: