(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
uninit-pr81897.c
       1  /* { dg-do compile }  */
       2  /* { dg-options "-O2 -Wuninitialized" } */
       3  
       4  int f(void);
       5  static inline void rcu_read_unlock(void)
       6  {
       7          static _Bool __warned;
       8          if (f() && !__warned && !f()) {
       9                  __warned = 1;
      10          }
      11  }
      12  int inet6_rtm_getroute(void)
      13  {
      14          int dst;
      15          int fibmatch = f();
      16  
      17          if (!fibmatch)
      18                  dst = f();
      19          rcu_read_unlock();
      20          if (fibmatch)
      21                  dst = 0;
      22  
      23          return dst;
      24  }