tcctest: One more signed zero test

This also checks that -(-0.0) is +0.0.
This commit is contained in:
Michael Matz 2014-01-12 04:53:29 +01:00
parent 05c9b76131
commit f42a02efda

View File

@ -1721,6 +1721,12 @@ void prefix ## signed_zeros(void) \
1.0 / x != 1.0 / p);\
else\
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)\
{\