solidity/test/libsolidity/smtCheckerTests/external_calls/external_reentrancy_2.sol
2023-02-06 17:02:33 +01:00

17 lines
291 B
Solidity

interface D { function e() external; }
contract C {
bool locked = true;
function call(address target) public {
assert(locked);
locked = false;
D(target).e();
locked = true;
}
}
// ====
// SMTEngine: all
// ----
// Warning 6328: (117-131): CHC: Assertion violation happens here.