test: Test signed division.
* lib/tests/scaffold/36-compare-arithmetic.c (main): Test signed division.
This commit is contained in:
parent
3f03574050
commit
48ecb2f29e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue