diff options
author | chriseth <chris@ethereum.org> | 2018-10-19 17:08:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-19 17:08:46 +0800 |
commit | 5c274a9251f3beba5c23518e080f968930c69501 (patch) | |
tree | 8cabd938313e3584cdc02f38327a0c7fe5901bea | |
parent | 0ebe572f7d2303c174e9990db12d9dd36489d3c1 (diff) | |
parent | e8a2d570756a5d2ae379babbc4f9be067531acdf (diff) | |
download | dexon-solidity-5c274a9251f3beba5c23518e080f968930c69501.tar.gz dexon-solidity-5c274a9251f3beba5c23518e080f968930c69501.tar.zst dexon-solidity-5c274a9251f3beba5c23518e080f968930c69501.zip |
Merge pull request #5260 from ethereum/flattenMore
Flatten more.
-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 +// } |