solidity/test/libsolidity/semanticTests/exponentiation/signed_base.sol

17 lines
296 B
Solidity
Raw Normal View History

contract test {
function f() public pure returns (int, int) {
int32 x = -3;
uint8 y1;
uint8 y2;
assembly {
y1 := 0x102
y2 := 0x103
}
return (x**y1, x**y2);
}
}
2020-07-22 14:52:28 +00:00
// ====
// compileViaYul: also
// ----
// f() -> 9, -27