blob: b6a82f41d874f5317a803948a95a2321088f07b0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
namespace;
include rt;
// i starts negative. i < len is true for the first pass, and the index is still illegal.
fn main() {
fixed int[?] f = rt.new(fixed int[?], 4);
int n = len(f), i;
for (i = -1; i < n; i++) f[i] = 1;
rt.free(d*f);
return 0;
}
|