solidity/test/libsolidity/smtCheckerTests/operators/unary_operators_tuple_3.sol
2020-09-01 08:25:06 +02:00

13 lines
226 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(bool b) public pure {
uint x;
if (b) ++(x);
else x += 1;
assert(x == 1);
assert(!b);
}
}
// ----
// Warning 6328: (140-150): Assertion violation happens here