1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/* PR c/10175 */ /* { dg-do compile } */ /* { dg-options "-Wunreachable-code" } */ int i,j; int main(void) { if (0) { i = 0; /* { dg-warning "will never be executed" "" } */ j = 0; } else { i = 1; j = 1; } return 0; }