PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / Wunreachable-7.c
blob9a4d411be22c96d5f36ca267f35af0dc46f1ca60
1 /* PR c/11370 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -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;