Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / Wdangling-else-1.c
blob28a5a8f53fb6fbc0debedaa2aff5b8ccca3f48f8
1 /* { dg-do compile } */
2 /* { dg-options "-Wdangling-else" } */
4 void bar (int);
5 void
6 foo (int a, int b)
8 if (a) /* { dg-warning "suggest explicit braces to avoid ambiguous" } */
9 if (b)
10 bar (1);
11 else
12 bar (2);