| 1 | module Bare; |
| 2 | |
| 3 | (* For raz -bare: no argc and argv are read, so ARGC() is 0; and Rt's |
| 4 | body, which sets the signals' handlers, doesn't run, so a nil pointer |
| 5 | ends the program by SIGSEGV with nothing said. *) |
| 6 | import Out; |
| 7 | |
| 8 | proc main*; |
| 9 | var p: ^INT; |
| 10 | begin |
| 11 | Out.int(ARGC()); Out.ln; |
| 12 | Out.flush(); |
| 13 | p := nil; |
| 14 | p^ := 1; |
| 15 | end; |
| 16 | |
| 17 | end Bare. |