* gcc.dg/i386-fpcvt-1.c: New test.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wunreachable-1.c
blobd6d59b481aaca261f5b17da179c6878b894a2ccf
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wunreachable-code" } */
4 extern void foo (void);
5 extern void baz (void);
7 void bar (int i)
9 if (i < 2)
11 baz ();
12 return;
14 else
16 if (i >= 4 && i <= 5)
17 foo ();
18 return;
21 baz (); /* { dg-warning "will never be executed" "" } */
22 baz ();
23 baz ();