solidity/test/libsolidity/semanticTests/cleanup/exp_cleanup_nonzero_base.sol
2022-05-19 20:23:28 +02:00

14 lines
232 B
Solidity

contract C {
function f() public pure returns (uint8 x) {
unchecked {
uint16 x = 0x166;
return uint8(x)**uint8(uint8(2)**uint8(8));
}
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 0x1