X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F20020503-1.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2F20020503-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=6d45ca09af02071cbf0f7990f3df086607a69efb;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/20020503-1.c b/gcc/testsuite/gcc.c-torture/execute/20020503-1.c deleted file mode 100644 index 6d45ca09..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/20020503-1.c +++ /dev/null @@ -1,31 +0,0 @@ -/* PR 6534 */ -/* GCSE unified the two i<0 tests, but if-conversion to ui=abs(i) - insertted the code at the wrong place corrupting the i<0 test. */ - -void abort (void); -static char * -inttostr (long i, char buf[128]) -{ - unsigned long ui = i; - char *p = buf + 127; - *p = '\0'; - if (i < 0) - ui = -ui; - do - *--p = '0' + ui % 10; - while ((ui /= 10) != 0); - if (i < 0) - *--p = '-'; - return p; -} - -int -main () -{ - char buf[128], *p; - - p = inttostr (-1, buf); - if (*p != '-') - abort (); - return 0; -}