Fix ICE in substring-handling building 502.gcc_r (PR 87562)
[official-gcc.git] / gcc / testsuite / c-c++-common / Wduplicated-branches-5.c
blobf2eb8ecfefa9cdfa15adcd5d182373787ca70a2c
1 /* PR c/64279 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wduplicated-branches" } */
5 extern int g;
6 extern void foo ();
7 #define A g = i
8 #define B g = i
9 #define DOIT() foo()
10 #define DOIT2() foo()
12 void
13 f (int i)
15 if (i == 0)
17 else
20 if (i == 1)
21 DOIT();
22 else
23 DOIT2();