This commit is contained in:
chriseth
2019-12-17 15:47:32 +01:00
parent 7b84e141dc
commit 143471fe87
3 changed files with 50 additions and 9 deletions
@@ -0,0 +1,11 @@
{
function foo(x) {
for {} x { x := mload(0) mstore(0, 0)} {}
}
mstore(0, 1337)
foo(42)
sstore(0, mload(0))
}
// ----
// : invalidatesStorage, invalidatesMemory
// foo: invalidatesMemory