raz / test / run / DivLowest.raz

16 lines · 297 B · raw · history · last change 389c4f3a

1module DivLowest;
2(* The lowest I64 divided by -1 stops the program with SIGFPE, as
3 dividing by zero does *)
4import Out;
5
6proc main*;
7var a, b: I64;
8begin
9 a := -9223372036854775807 - 1;
10 b := ARGC() - 2;
11 Out.int(a div (-2));
12 Out.flush;
13 Out.int(a div b);
14end;
15
16end DivLowest.