solidity/test/libsolidity/smtCheckerTests/external_calls/call_safe.sol

14 lines
289 B
Solidity
Raw Normal View History

2021-08-11 16:10:34 +00:00
contract C {
uint x;
function f(address a) public {
(bool s, bytes memory data) = a.call("");
assert(x == 0); // should hold
}
}
// ====
// SMTEngine: all
2021-11-23 17:54:44 +00:00
// SMTIgnoreInv: yes
2021-08-11 16:10:34 +00:00
// ----
// Warning 2072: (57-63): Unused local variable.
// Warning 2072: (65-82): Unused local variable.