| 1 | module OwnFail; |
| 2 | |
| 3 | (* As Own, but a check fails, an index out of range, which reaches the |
| 4 | program's own Rt.fail with kind 0: it says so and ends with status 2. *) |
| 5 | import Rt; |
| 6 | |
| 7 | var a: [4]INT; |
| 8 | |
| 9 | proc main*; |
| 10 | var i: INT; |
| 11 | begin |
| 12 | i := 4; |
| 13 | a[i] := 1; |
| 14 | Rt.say("not reached\n"); |
| 15 | end; |
| 16 | |
| 17 | end OwnFail. |