mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
18 lines
320 B
Solidity
18 lines
320 B
Solidity
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);
|
|
}
|
|
}
|
|
// ====
|
|
// compileToEwasm: also
|
|
// compileViaYul: also
|
|
// ----
|
|
// f() -> 9, -27
|