diff --git a/lib/tests/scaffold/36-compare-arithmetic.c b/lib/tests/scaffold/36-compare-arithmetic.c index c54ff695..a138aef9 100644 --- a/lib/tests/scaffold/36-compare-arithmetic.c +++ b/lib/tests/scaffold/36-compare-arithmetic.c @@ -44,5 +44,17 @@ main () if (8 / 4 != 2) return 1; + oputs ("t: 8 / -4\n"); + if (8 / -4 != -2) + return 1; + + oputs ("t: -8 / -4\n"); + if (-8 / -4 != 2) + return 1; + + oputs ("t: -8 / 4\n"); + if (-8 / 4 != -2) + return 1; + return 0; }