mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
476 B
Solidity
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.
|