diff options
author | chriseth <chris@ethereum.org> | 2018-10-18 06:58:15 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-18 06:58:15 +0800 |
commit | e8a2d570756a5d2ae379babbc4f9be067531acdf (patch) | |
tree | 08a80335282be89daca5ac20ebf925ef5dea30c5 /test | |
parent | 3d1ca07e9b4b42355aa9be5db5c00048607986d1 (diff) | |
download | dexon-solidity-e8a2d570756a5d2ae379babbc4f9be067531acdf.tar dexon-solidity-e8a2d570756a5d2ae379babbc4f9be067531acdf.tar.gz dexon-solidity-e8a2d570756a5d2ae379babbc4f9be067531acdf.tar.bz2 dexon-solidity-e8a2d570756a5d2ae379babbc4f9be067531acdf.tar.lz dexon-solidity-e8a2d570756a5d2ae379babbc4f9be067531acdf.tar.xz dexon-solidity-e8a2d570756a5d2ae379babbc4f9be067531acdf.tar.zst dexon-solidity-e8a2d570756a5d2ae379babbc4f9be067531acdf.zip |
Flatten more.
Diffstat (limited to 'test')
-rw-r--r-- | test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul b/test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul new file mode 100644 index 00000000..2df4f9d0 --- /dev/null +++ b/test/libyul/yulOptimizerTests/blockFlattener/switch_stmt.yul @@ -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 +// } |