solidity/test/libsolidity/semanticTests/exponentiation/small_exp.sol
2021-04-23 17:00:01 +01:00

18 lines
314 B
Solidity

contract test {
function f() public pure returns (uint r) {
uint32 x;
uint8 y;
assembly {
x := 0xfffffffffe
y := 0x102
}
unchecked { r = x**y; }
return r;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
// ----
// f() -> 4