solidity/test/libsolidity/semanticTests/exponentiation/small_exp.sol
2022-05-19 20:23:28 +02:00

17 lines
291 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;
}
}
// ====
// compileToEwasm: also
// ----
// f() -> 4