mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
21 lines
378 B
Plaintext
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)
|
||
|
// }
|
||
|
// }
|