solidity/test/libsolidity/smtCheckerTests/operators/compound_assignment_right_shift.sol
Martin Blicha 12aa654bad added test
2020-12-08 13:05:16 +01:00

12 lines
195 B
Solidity

pragma experimental SMTChecker;
contract C {
function f(int a, uint b) public view {
a >>= tx.gasprice;
require(a == 16 && b == 2);
a >>= b;
assert(a == 4); // should hold
}
}
// ----