Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / Wunreachable-3.c
blob966d89e3abc7f1cabc494b0050baac8f09ff1193
1 /* PR c/10175 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wunreachable-code" } */
5 int i,j;
6 int main(void)
8 if (0) {
9 i = 0; /* { dg-warning "will never be executed" "" } */
10 j = 0;
11 } else {
12 i = 1;
13 j = 1;
16 return 0;