aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wduplicated-branches-10.c
blob: 8d918efcdc3a3c04d917c7a17daa44c5cbf0f860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* PR c/64279 */
/* { dg-do compile } */
/* { dg-options "-Wduplicated-branches" } */

#define DEBUG(msg) ;

void
f (int i)
{
  if (i > 9)
    {
      DEBUG ("foo");
    }
  else
    {
      DEBUG ("bar");
    }
}