blob: 49639c52e0745541d6dc075ddfdced6f71e49ab6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
namespace;
include rt;
// the index is not the induction variable. i + 1 walks off the end.
o3 fn main() {
fixed int[?] f = rt.new(fixed int[?], 4);
int n = len(f), i;
for (i = 0; i < n; i++) f[i + 1] = 1;
rt.free(d*f);
return 0;
}
|