solidity/test/libsolidity/semanticTests/operators/shifts/shift_right_uint8.sol

13 lines
241 B
Solidity
Raw Normal View History

contract C {
function f(uint8 a, uint8 b) public returns (uint256) {
return a >> b;
}
}
2020-04-20 21:16:42 +00:00
// ====
// compileToEwasm: also
// compileViaYul: also
// ----
// f(uint8,uint8): 0x66, 0x0 -> 0x66
// f(uint8,uint8): 0x66, 0x8 -> 0x0