solidity/test/libsolidity/smtCheckerTests/special/tx_vars_reentrancy_2.sol

19 lines
476 B
Solidity
Raw Normal View History

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
// ----
2022-01-12 13:46:30 +00:00
// 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.