(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
pr92794.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O3 --param ipa-cp-eval-threshold=1" } */
       3  
       4  int data[100];
       5  int depth = 0;
       6  
       7  int recur_fn (int *__restrict p)
       8  {
       9    int i = *p;
      10  
      11    if (depth++ > 6) 
      12      return 10;
      13  
      14    data[i] = i; 
      15  
      16    recur_fn (&i);
      17  
      18    depth--;
      19  
      20    return i;
      21  }
      22  
      23  int main ()
      24  {
      25    int i = 1;
      26  
      27    recur_fn (&i);
      28  
      29    return 0;
      30  }