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

14 lines
315 B
Solidity

contract C {
uint x;
function f(address _a) public {
x = 2;
_a.call("");
assert(x == 2); // should fail
}
}
// ====
// SMTEngine: bmc
// ----
// Warning 9302: (66-77='_a.call("")'): Return value of low-level calls not used.
// Warning 4661: (81-95='assert(x == 2)'): BMC: Assertion violation happens here.