summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/ieee/920810-1.c
blob: 62d22940adc54ea6b485eda4682d17a4256754f0 (plain)
1
2
3
#include <stdio.h>
double normalize(x)double x;{if(x==0)x=0;return x;}
main(){char b[9];sprintf(b,"%g",normalize(-0.0));if(strcmp(b,"0"))abort();exit(0);}