mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #7003 from ethereum/missingTestKnowledge
Adding forgotten test for load resolver.
This commit is contained in:
commit
f05805c955
@ -0,0 +1,23 @@
|
||||
{
|
||||
mstore(2, 3)
|
||||
if calldataload(1) {
|
||||
mstore(2, 7)
|
||||
// Re-writing the old value, should allow to eliminate the load below.
|
||||
mstore(2, 3)
|
||||
}
|
||||
sstore(0, mload(2))
|
||||
}
|
||||
// ====
|
||||
// step: loadResolver
|
||||
// ----
|
||||
// {
|
||||
// let _1 := 3
|
||||
// let _2 := 2
|
||||
// mstore(_2, _1)
|
||||
// if calldataload(1)
|
||||
// {
|
||||
// mstore(_2, 7)
|
||||
// mstore(_2, _1)
|
||||
// }
|
||||
// sstore(0, _1)
|
||||
// }
|
Loading…
Reference in New Issue
Block a user