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

23 lines
500 B
Solidity

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.call(data);
assert(success);
assert(x == 0);
assert(map[0] == 0);
assert(localMap[0] == 0);
}
}
// ====
// EVMVersion: >spuriousDragon
// ----
// Warning: (224-240): Unused local variable.
// Warning: (260-275): Assertion violation happens here