solidity/test/libsolidity/semanticTests/expressions/inc_dec_operators.sol

19 lines
338 B
Solidity
Raw Normal View History

2019-07-08 14:04:52 +00:00
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;
}
}
// ====
// compileViaYul: also
// compileToEwasm: also
2019-07-08 14:04:52 +00:00
// ----
// f() -> 0x053866