Merge pull request #7003 from ethereum/missingTestKnowledge

Adding forgotten test for load resolver.
This commit is contained in:
chriseth 2019-06-26 13:08:55 +02:00 committed by GitHub
commit f05805c955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
// }