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

12 lines
178 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(bool b) public pure {
uint x;
if (b) ++(x);
if (b) --(x);
if (b) delete(b);
assert(x == 0);
assert(!b);
}
}