mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
19 lines
338 B
Solidity
19 lines
338 B
Solidity
contract test {
|
|
uint8 x;
|
|
uint v;
|
|
function f() public returns (uint r) {
|
|
uint a = 6;
|
|
r = a;
|
|
r += (a++) * 0x10;
|
|
r += (++a) * 0x100;
|
|
v = 3;
|
|
r += (v++) * 0x1000;
|
|
r += (++v) * 0x10000;
|
|
}
|
|
}
|
|
// ====
|
|
// compileToEwasm: also
|
|
// compileViaYul: also
|
|
// ----
|
|
// f() -> 0x053866
|