raz / test / strip / Index.raz

14 lines · 205 B · raw · history · last change c16e8a93

1module Index;
2
3(* For raz -s: an index out of range, told by its address alone. *)
4import Out;
5
6proc main*;
7var a: [3]INT; i: INT;
8begin
9 Out.str("hello\n");
10 i := 5;
11 a[i] := 1;
12end;
13
14end Index.