solidity/test/libsolidity/semanticTests/shifts/shift_constant_left_assignment.sol

12 lines
159 B
Solidity
Raw Normal View History

contract C {
function f() public returns (uint256 a) {
a = 0x42;
a <<= 8;
}
}
2020-04-20 21:16:42 +00:00
// ====
// compileViaYul: also
// ----
// f() -> 0x4200