aboutsummaryrefslogtreecommitdiff
path: root/tests/programs/bounds_hi.zc
blob: d61179dcae032b8f9cb1049897338d13680d799f (plain) (blame)
1
2
3
4
5
6
7
8
// the index is not the induction variable. i + 1 walks off the end.
o3 fn main() {
	fixed []int f = new(fixed []int, 4);
	int n = len(f), i;
	for (i = 0; i < n; i++) f[i + 1] = 1;
	free(d*f);
	return 0;
}