solidity/test/libsolidity/smtCheckerTests/external_calls/call_safe.sol
2023-03-09 14:59:32 +01:00

15 lines
420 B
Solidity

contract C {
uint x;
function f(address a) public {
(bool s, bytes memory data) = a.call("");
assert(x == 0); // should hold
}
}
// ====
// SMTEngine: all
// SMTIgnoreInv: yes
// ----
// Warning 2072: (57-63): Unused local variable.
// Warning 2072: (65-82): Unused local variable.
// Info 1391: CHC: 1 verification condition(s) proved safe! Enable the model checker option "show proved safe" to see all of them.