solidity/test/libsolidity/smtCheckerTests/operators/unary_operators_tuple_2.sol

12 lines
208 B
Solidity
Raw Normal View History

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);
}
}