X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F991228-1.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F991228-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=c6fe78e7dadbc6a19309e8c6ac7283484d11a115;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/991228-1.c b/gcc/testsuite/gcc.c-torture/execute/991228-1.c deleted file mode 100644 index c6fe78e7..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/991228-1.c +++ /dev/null @@ -1,25 +0,0 @@ -__extension__ union { double d; int i[2]; } u = { d: -0.25 }; - -/* This assumes the endianness of words in a long long is the same as - that for doubles, which doesn't hold for a few platforms, but we - can probably special case them here, as appropriate. */ -long long endianness_test = 1; -#define MSW (*(int*)&endianness_test) - -int -signbit(double x) -{ - __extension__ union { double d; int i[2]; } u = { d: x }; - return u.i[MSW] < 0; -} - -int main(void) -{ - if (2*sizeof(int) != sizeof(double) || u.i[MSW] >= 0) - exit(0); - - if (!signbit(-0.25)) - abort(); - - exit(0); -}