raz / test / bare / Bare.raz

17 lines · 343 B · raw · history · last change 7624e35d

1module 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. *)
6import Out;
7
8proc main*;
9var p: ^INT;
10begin
11 Out.int(ARGC()); Out.ln;
12 Out.flush();
13 p := nil;
14 p^ := 1;
15end;
16
17end Bare.