test: Test signed division.

* lib/tests/scaffold/36-compare-arithmetic.c (main): Test signed division.
This commit is contained in:
Danny Milosavljevic 2020-06-10 17:04:55 +02:00
parent 3f03574050
commit 48ecb2f29e
No known key found for this signature in database
GPG Key ID: E71A35542C30BAA5
1 changed files with 12 additions and 0 deletions

View File

@ -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;
}