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

12 lines
188 B
Solidity
Raw Normal View History

2020-12-08 12:05:16 +00:00
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
}
}
2021-03-31 15:11:54 +00:00
// ====
// SMTEngine: all
2020-12-08 12:05:16 +00:00
// ----