(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr106938.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O1 -fno-ipa-pure-const -fno-tree-ccp -Wuninitialized" } */
       3  
       4  int n;
       5  
       6  void
       7  undefined (void);
       8  
       9  __attribute__ ((returns_twice)) int
      10  zero (void)
      11  {
      12    return 0;
      13  }
      14  
      15  void
      16  bar (int)
      17  {
      18    int i;
      19  
      20    for (i = 0; i < -1; ++i)
      21      n = 0;
      22  }
      23  
      24  __attribute__ ((simd)) void
      25  foo (void)
      26  {
      27    int uninitialized;
      28  
      29    undefined ();
      30  
      31    while (uninitialized < 1) /* { dg-warning "uninitialized" } */
      32      {
      33        bar (zero ());
      34        ++uninitialized;
      35      }
      36  }