solidity/test/libsolidity/semanticTests/shifts/shift_left_assignment_different_type.sol
2020-05-06 19:14:23 +02:00

16 lines
446 B
Solidity

contract C {
function f(uint256 a, uint8 b) public returns (uint256) {
a <<= b;
return a;
}
}
// ====
// compileViaYul: also
// ----
// f(uint256,uint8): 0x4266, 0x0 -> 0x4266
// f(uint256,uint8): 0x4266, 0x8 -> 0x426600
// f(uint256,uint8): 0x4266, 0x10 -> 0x42660000
// f(uint256,uint8): 0x4266, 0x11 -> 0x84cc0000
// f(uint256,uint8): 0x4266, 0xf0 -> 0x4266000000000000000000000000000000000000000000000000000000000000