raz / test / run / DivZero.raz

12 lines · 200 B · raw · history · last change 2411fde8

1module DivZero;
2(* Dividing by zero stops the program with SIGFPE, after saying where *)
3
4proc main*: INT;
5var a, b: INT;
6begin
7 a := 7;
8 b := ARGC() - 1;
9 return a mod b;
10end;
11
12end DivZero.