solidity/test/libsolidity/semanticTests/cleanup/exp_cleanup_nonzero_base.sol

14 lines
231 B
Solidity

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