solidity/test/libsolidity/smtCheckerTests/bmc_coverage/staticcall_balance.sol
2022-04-01 23:41:18 -05:00

13 lines
305 B
Solidity

contract C {
function f(address _a) public view {
uint b1 = address(this).balance;
_a.staticcall("");
uint b2 = address(this).balance;
assert(b1 == b2); // should hold
}
}
// ====
// SMTEngine: bmc
// ----
// Warning 9302: (88-105='_a.staticcall("")'): Return value of low-level calls not used.