| 1 |
MODULE tinyrange ; |
| 2 |
|
| 3 |
(* This test is useful to check that the runtime system starts the |
| 4 |
application after the runtime. The import list here is minimal |
| 5 |
(and only from a definition for "C") thus the compiler will not |
| 6 |
see the application in the rest of the modula2 import graph. |
| 7 |
M2Dependent.mod will have to force the application module to the |
| 8 |
end of the initialization ordered list. *) |
| 9 |
|
| 10 |
FROM libc IMPORT printf ; |
| 11 |
|
| 12 |
VAR |
| 13 |
i: INTEGER ; |
| 14 |
BEGIN |
| 15 |
i := MIN (INTEGER) ; |
| 16 |
DEC (i) |
| 17 |
END tinyrange. |