raz / conform / run / IndexBig.raz

15 lines · 270 B · raw · history · last change b38de572

1(* An index is checked by its value: 4294967297 in a U64 is past the
2 length, not 1. *)
3module IndexBig;
4import Out;
5
6proc main*;
7var a: [3]I64; u: U64;
8begin
9 Out.str("before\n");
10 u := 4294967297;
11 Out.int(a[u]);
12 Out.str("after\n");
13end;
14
15end IndexBig.