solidity/test/libsolidity/smtCheckerTests/special/tx_vars_reentrancy_2.sol
2022-01-12 15:13:34 +01:00

19 lines
476 B
Solidity

interface I {
function f() external payable;
}
contract C {
function g(I _i) public payable {
uint x = address(this).balance;
_i.f{ value: 100 }();
assert(x == address(this).balance); // should fail
}
}
// ====
// SMTEngine: all
// SMTIgnoreOS: macos
// ----
// Warning 1218: (157-191): CHC: Error trying to invoke SMT solver.
// Warning 6328: (157-191): CHC: Assertion violation might happen here.
// Warning 4661: (157-191): BMC: Assertion violation happens here.