raz / test / run / InlineCheck.raz

15 lines · 393 B · raw · history · last change 88e6b860

1(* A check that fails in a procedure made in place of its call is told
2 at the procedure's line, in its file; the trap report names the
3 procedure that called it, which the code is part of. *)
4module InlineCheck;
5import Out, InlAt;
6
7proc main*;
8var a: [3]INT; i: INT;
9begin
10 a := [1, 2, 3];
11 for i := 0 to 3 do
12 Out.int(InlAt.at(a, i)); Out.ln;
13 end;
14end;
15end InlineCheck.