(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
Winit-self1.c
       1  /* PR middle-end/102633 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-Wuninitialized -Wno-init-self" } */
       4  
       5  int
       6  fn1 (void)
       7  {
       8    int i = i;
       9    return i;
      10  }
      11  
      12  int
      13  fn2 ()
      14  {
      15    const int j = j;
      16    return j;
      17  }
      18  
      19  int
      20  fn3 ()
      21  {
      22    volatile int k = k;
      23    return k;
      24  }
      25  
      26  int
      27  fn4 ()
      28  {
      29    const volatile int l = l;
      30    return l;
      31  }