solidity/test/libsolidity/semanticTests/shifts/shift_right_assignment_signed.sol
2020-03-19 14:42:25 +01:00

13 lines
288 B
Solidity

contract C {
function f(int256 a, int256 b) public returns (int256) {
a >>= b;
return a;
}
}
// ----
// f(int256,int256): 0x4266, 0x0 -> 0x4266
// f(int256,int256): 0x4266, 0x8 -> 0x42
// f(int256,int256): 0x4266, 0x10 -> 0
// f(int256,int256): 0x4266, 0x11 -> 0