mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
commit
5c274a9251
22
test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul
Normal file
22
test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
let a := 1
|
||||||
|
switch calldataload(0)
|
||||||
|
case 0 { { { mstore(0, 1) } } a := 8 }
|
||||||
|
default { a := 3 { a := 4 } }
|
||||||
|
a := 5
|
||||||
|
}
|
||||||
|
// ----
|
||||||
|
// blockFlattener
|
||||||
|
// {
|
||||||
|
// let a := 1
|
||||||
|
// switch calldataload(0)
|
||||||
|
// case 0 {
|
||||||
|
// mstore(0, 1)
|
||||||
|
// a := 8
|
||||||
|
// }
|
||||||
|
// default {
|
||||||
|
// a := 3
|
||||||
|
// a := 4
|
||||||
|
// }
|
||||||
|
// a := 5
|
||||||
|
// }
|
Loading…
Reference in New Issue
Block a user