solidity/test/libsolidity/smtCheckerTests/types/address_delegatecall.sol

26 lines
701 B
Solidity
Raw Normal View History

2019-04-11 16:14:48 +00:00
pragma experimental SMTChecker;
contract C
{
uint x;
mapping (uint => uint) map;
function f(address a, bytes memory data) public {
x = 0;
map[0] = 0;
mapping (uint => uint) storage localMap = map;
(bool success, bytes memory ret) = a.delegatecall(data);
assert(success);
assert(x == 0);
assert(map[0] == 0);
assert(localMap[0] == 0);
}
}
// ====
// EVMVersion: >spuriousDragon
// ----
// Warning 2072: (224-240): Unused local variable.
2020-07-13 18:48:00 +00:00
// Warning 6328: (268-283): Assertion violation happens here
// Warning 6328: (287-301): Assertion violation happens here
// Warning 6328: (305-324): Assertion violation happens here
// Warning 6328: (328-352): Assertion violation happens here