mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +08:00
tcctest: One more signed zero test
This also checks that -(-0.0) is +0.0.
This commit is contained in:
parent
05c9b76131
commit
f42a02efda
@ -1721,6 +1721,12 @@ void prefix ## signed_zeros(void) \
|
|||||||
1.0 / x != 1.0 / p);\
|
1.0 / x != 1.0 / p);\
|
||||||
else\
|
else\
|
||||||
printf ("x != +y; this is wrong!\n");\
|
printf ("x != +y; this is wrong!\n");\
|
||||||
|
p = -y;\
|
||||||
|
if (x == p)\
|
||||||
|
printf ("Test 1.0 / x != 1.0 / -y returns %d (should be 0).\n",\
|
||||||
|
1.0 / x != 1.0 / p);\
|
||||||
|
else\
|
||||||
|
printf ("x != -y; this is wrong!\n");\
|
||||||
}\
|
}\
|
||||||
void prefix ## test(void)\
|
void prefix ## test(void)\
|
||||||
{\
|
{\
|
||||||
|
Loading…
Reference in New Issue
Block a user