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

14 lines
220 B
Solidity
Raw Normal View History

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