mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
16 lines
345 B
Solidity
16 lines
345 B
Solidity
|
pragma experimental SMTChecker;
|
||
|
|
||
|
contract C
|
||
|
{
|
||
|
function f(address payable a) public {
|
||
|
uint x = 100;
|
||
|
require(x == a.balance);
|
||
|
a.transfer(600);
|
||
|
// This fails since a == this is possible.
|
||
|
assert(a.balance == 700);
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// Warning: (131-146): Insufficient funds happens here
|
||
|
// Warning: (195-219): Assertion violation happens here
|