raz / test / run / DivLowestI8.raz

16 lines · 338 B · raw · history · last change 2411fde8

1module DivLowestI8;
2(* The lowest of every signed type divided by -1 stops the program, not
3 only the lowest I64's: here an I8's, by a divisor not known *)
4import Out;
5
6proc main*;
7var a, b: I8;
8begin
9 a := -128;
10 b := I8(ARGC() - 2);
11 Out.int(I64(a div (-2)));
12 Out.flush;
13 Out.int(I64(a div b));
14end;
15
16end DivLowestI8.