Added a few optimizer tests for Verbatim

This commit is contained in:
hrkrshnn
2021-04-28 09:56:45 +02:00
parent 2e99a56be2
commit 8b4eaeabbf
4 changed files with 222 additions and 0 deletions
@@ -0,0 +1,17 @@
{
// cannot be removed because of verbatim
let a := mload(10)
// cannot be removed because of verbatim
let b := keccak256(10, 32)
// can be removed
let c := add(a, b)
verbatim_0i_0o("test")
}
// ----
// step: unusedPruner
//
// {
// pop(mload(10))
// pop(keccak256(10, 32))
// verbatim_0i_0o("test")
// }