solidity/test/libsolidity/semanticTests/expressions/inc_dec_operators.sol
2023-05-11 10:56:55 -05:00

16 lines
283 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;
}
}
// ----
// f() -> 0x053866