mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
267 B
Solidity
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
|