OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / Wunreachable-7.c
1 /* PR c/11370  */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -Wunreachable-code" } */
4
5 int main(int argc, char *argv[])
6 {
7   if (argc != 1)
8     exit(1);
9
10   {
11     int ix;  /* { dg-bogus "will never be executed" } */
12     ix = printf("hello\n");
13     printf("%d\n", ix);
14   }
15
16   return 0;
17 }
18