| 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. *) |
| 4 | module InlineCheck; |
| 5 | import Out, InlAt; |
| 6 | |
| 7 | proc main*; |
| 8 | var a: [3]INT; i: INT; |
| 9 | begin |
| 10 | a := [1, 2, 3]; |
| 11 | for i := 0 to 3 do |
| 12 | Out.int(InlAt.at(a, i)); Out.ln; |
| 13 | end; |
| 14 | end; |
| 15 | end InlineCheck. |