X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Floop-15.c;fp=gcc%2Ftestsuite%2Fgcc.c-torture%2Fexecute%2Floop-15.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=8cb5125a29ea691731155d245c819a0fcf8a2822;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-15.c b/gcc/testsuite/gcc.c-torture/execute/loop-15.c deleted file mode 100644 index 8cb5125a..00000000 --- a/gcc/testsuite/gcc.c-torture/execute/loop-15.c +++ /dev/null @@ -1,40 +0,0 @@ -/* Bombed with a segfault on powerpc-linux. doloop.c generated wrong - loop count. */ -void -foo (unsigned long *start, unsigned long *end) -{ - unsigned long *temp = end - 1; - - while (end > start) - *end-- = *temp--; -} - -int -main (void) -{ - unsigned long a[5]; - int start, end, k; - - for (start = 0; start < 5; start++) - for (end = 0; end < 5; end++) - { - for (k = 0; k < 5; k++) - a[k] = k; - - foo (a + start, a + end); - - for (k = 0; k <= start; k++) - if (a[k] != k) - abort (); - - for (k = start + 1; k <= end; k++) - if (a[k] != k - 1) - abort (); - - for (k = end + 1; k < 5; k++) - if (a[k] != k) - abort (); - } - - return 0; -}