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

15 lines
255 B
Solidity
Raw Normal View History

contract C {
function f() public pure returns (uint8 x) {
2020-09-15 14:16:30 +00:00
unchecked {
uint16 x = 0x166;
return uint8(x)**uint8(uint8(2)**uint8(8));
2020-09-15 14:16:30 +00:00
}
}
}
// ====
// compileViaYul: also
2021-04-23 15:59:01 +00:00
// compileToEwasm: also
// ----
// f() -> 0x1