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

8 lines
105 B
Solidity
Raw Normal View History

contract C {
int256 public a = -0x42 << 8;
}
// ====
// compileViaYul: also
// ----
// a() -> -16896