solidity/test/libyul/yulOptimizerTests/unusedStoreEliminator/function_end.yul
2022-03-10 18:25:28 +01:00

21 lines
378 B
Plaintext

{
function f() {
let x := calldataload(2)
mstore(x, 2)
// This cannot be removed because we do not know what happens after the function.
mstore(x, 3)
}
}
// ----
// step: unusedStoreEliminator
//
// {
// { }
// function f()
// {
// let x := calldataload(2)
// let _2 := 2
// mstore(x, 3)
// }
// }