aboutsummaryrefslogtreecommitdiff
path: root/tests/conformance/3-expressions/assign_target_address_first.zc
blob: 5fe6093f5b08aa0563d360287d71377a353dc95c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// expect: 2/0/
include rt;
void pn(int x) { rt.put_n(x); rt.put_c(10); }
fn main() {
	int i = 0;
	int[3] a = {0, 0, 0};
	a[i] = i = 2;
	pn(a[0]); pn(a[2]);
	return 0;
}
// zc0: skip