2008-01-25 Douglas Gregor <doug.gregor@gmail.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / Wunreachable-6.c
blob6aac7aab205d201ae99c9da3d65545c366bea85e
1 /* PR c/11370 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunreachable-code" } */
5 extern int printf (const char *, ...);
6 extern void exit (int);
8 int main(int argc, char *argv[])
10 if (argc != 1)
11 exit(1);
14 int ix; /* { dg-bogus "will never be executed" } */
15 ix = printf("hello\n");
16 printf("%d\n", ix);
19 return 0;