mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
31 lines
509 B
Plaintext
31 lines
509 B
Plaintext
{
|
|
function foo(x) {
|
|
for {} x { x := mload(0) mstore(0, 0)} {}
|
|
}
|
|
mstore(0, 1337)
|
|
foo(42)
|
|
sstore(0, mload(0))
|
|
}
|
|
// ====
|
|
// EVMVersion: >=shanghai
|
|
// ----
|
|
// step: loadResolver
|
|
//
|
|
// {
|
|
// {
|
|
// mstore(0, 1337)
|
|
// foo(42)
|
|
// sstore(0, mload(0))
|
|
// }
|
|
// function foo(x)
|
|
// {
|
|
// for { }
|
|
// x
|
|
// {
|
|
// x := mload(0)
|
|
// mstore(0, 0)
|
|
// }
|
|
// { }
|
|
// }
|
|
// }
|