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

12 lines
195 B
Solidity
Raw Normal View History

2020-12-08 12:05:16 +00:00
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
}
}
// ----