aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/eval_order_binary_calls.zc
blob: 36b4c8ac7b8282ae78e30ec0773f0d9d1b395d8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
// expect: 12/
include rt;
int trace;
int step(int v) { trace = trace * 10 + v; return v; }
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int r = step(1) - step(2) * 1;
	pn(trace);
	return 0;
}