diff options
Diffstat (limited to 'tests/programs/bounds_hi.zc')
| -rw-r--r-- | tests/programs/bounds_hi.zc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/programs/bounds_hi.zc b/tests/programs/bounds_hi.zc index d61179d..49639c5 100644 --- a/tests/programs/bounds_hi.zc +++ b/tests/programs/bounds_hi.zc @@ -1,8 +1,11 @@ +namespace; +include rt; + // the index is not the induction variable. i + 1 walks off the end. o3 fn main() { - fixed []int f = new(fixed []int, 4); + fixed int[?] f = rt.new(fixed int[?], 4); int n = len(f), i; for (i = 0; i < n; i++) f[i + 1] = 1; - free(d*f); + rt.free(d*f); return 0; } |
