raz / conform / run / IndexSmall.raz

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

1(* An index is checked by its value, whatever its type: -128 in an I8
2 is not 128. *)
3module IndexSmall;
4import Out;
5
6proc main*;
7var a: [200]I64; i: I8;
8begin
9 Out.str("before\n");
10 i := -128;
11 Out.int(a[i]);
12 Out.str("after\n");
13end;
14
15end IndexSmall.