raz
/
conform
/
run
/ IndexSmall.raz
about
files
log
releases
feed
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. *)
3
module
IndexSmall;
4
import
Out;
5
6
proc
main*;
7
var
a: [
200
]
I64
; i:
I8
;
8
begin
9
Out.str(
"before\n"
);
10
i := -
128
;
11
Out.int(a[i]);
12
Out.str(
"after\n"
);
13
end
;
14
15
end
IndexSmall.