X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fgcc.dg%2FWunreachable-1.c;fp=gcc%2Ftestsuite%2Fgcc.dg%2FWunreachable-1.c;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=d6d59b481aaca261f5b17da179c6878b894a2ccf;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/gcc.dg/Wunreachable-1.c b/gcc/testsuite/gcc.dg/Wunreachable-1.c deleted file mode 100644 index d6d59b48..00000000 --- a/gcc/testsuite/gcc.dg/Wunreachable-1.c +++ /dev/null @@ -1,24 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -Wunreachable-code" } */ - -extern void foo (void); -extern void baz (void); - -void bar (int i) -{ - if (i < 2) - { - baz (); - return; - } - else - { - if (i >= 4 && i <= 5) - foo (); - return; - } - - baz (); /* { dg-warning "will never be executed" "" } */ - baz (); - baz (); -}