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

13 lines
267 B
Solidity

// This basically tests proper cleanup and conversion. It should not convert x to int8.
contract C {
function f() public returns (int8) {
uint8 x = 254;
int8 y = 1;
return y << x;
}
}
// ====
// compileViaYul: also
// ----
// f() -> 0