solidity/test/libyul/functionSideEffects/mload_in_function.yul
2020-08-18 14:53:59 +02:00

12 lines
251 B
Plaintext

{
function foo(x) {
for {} x { x := mload(0) mstore(0, 0)} {}
}
mstore(0, 1337)
foo(42)
sstore(0, mload(0))
}
// ----
// : can loop, writes storage, writes memory
// foo: can loop, writes memory