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

13 lines
210 B
Solidity
Raw Normal View History

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