(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
ipa-6.c
       1  /* PR middle-end/29122 */
       2  /* { dg-do compile } */
       3  /* { dg-options "-O3 -fipa-cp -fno-early-inlining" } */
       4  
       5  int
       6  dont_inline (int);
       7  
       8  int
       9  bar (int b, int c)
      10  {
      11     return dont_inline (c);
      12  }
      13  
      14  int
      15  foo (int a)
      16  {
      17    if (a++ > 0)
      18      bar (a, 3);
      19  
      20    foo (7);
      21  }
      22  
      23  int
      24  main ()
      25  {
      26    int i;
      27    for (i = 0; i < 100; i++)
      28      foo (7);
      29    return 0;
      30  }
      31  
      32  
      33