aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/eval_order_operands.zc
blob: a8f289c04a62dd77f260ed18582f4a1f1d580cb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 38/11/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int a = 18;
	pn(a++ + ++a);
	int j = 1;
	pn(j + (j = 5) * 2);
	return 0;
}