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

16 lines
305 B
Solidity

contract C {
function f(int256 a, int256 b) public returns (int256) {
a <<= b;
return a;
}
function g(int256 a, int256 b) public returns (int256) {
a >>= b;
return a;
}
}
// ----
// f(int256,int256): 1, -1 -> FAILURE
// g(int256,int256): 1, -1 -> FAILURE