(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
Wduplicated-branches-13.c
       1  /* PR c/79199 */
       2  /* { dg-do compile { target int32plus } } */
       3  /* { dg-options "-Wduplicated-branches" } */
       4  
       5  unsigned int a, b, c, d, e;
       6  void
       7  fn1 (void)
       8  {
       9    if (0) /* { dg-warning "this condition has identical branches" } */
      10      {
      11        if (d > 4294967293U)
      12  	(void) 5;
      13        c = d;
      14        b = e | a;
      15      }
      16    else
      17      {
      18        if (d > 4294967293U)
      19  	(void) 5;
      20        c = d;
      21        b = e | a;
      22      }
      23  }