solidity/test/libsolidity/semanticTests/shifts/shift_underflow_negative_rvalue.sol
2020-05-26 10:18:21 +02:00

16 lines
304 B
Solidity

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