raz / test / run / DivLowestI16.raz

15 lines · 275 B · raw · history · last change 2411fde8

1module DivLowestI16;
2(* mod too: the lowest I16 mod -1 overflows the division as div does *)
3import Out;
4
5proc main*;
6var a, b: I16;
7begin
8 a := -32768;
9 b := I16(ARGC() - 2);
10 Out.int(I64(a mod 3));
11 Out.flush;
12 Out.int(I64(a mod b));
13end;
14
15end DivLowestI16.