X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Floop1.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.dg%2Feh%2Floop1.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=b9b230e0fe1b40c186a7a651b43068b22db63ef9;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.dg/eh/loop1.C b/gcc/testsuite/g++.dg/eh/loop1.C deleted file mode 100644 index b9b230e0..00000000 --- a/gcc/testsuite/g++.dg/eh/loop1.C +++ /dev/null @@ -1,30 +0,0 @@ -// Verify that loop optimization takes into account the exception edge -// and does not increment I before the call. -// { dg-do run } -// { dg-options "-O2" } - -extern "C" void abort(); -static void bar(char *); - -static void foo(unsigned long element_count, char *ptr) -{ - unsigned long i; - try { - for (i = 0; i != element_count; i++, ptr += 8) - bar (ptr); - } - catch (...) { - if (i) - abort (); - } -} - -static void bar(char *) -{ - throw 1; -} - -int main() -{ - foo(2, 0); -}