(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
ipa/
pr61986.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O3" } */
       3  
       4  int a, b, c;
       5  
       6  struct S
       7  {
       8    int f0;
       9    int f1;
      10  } d;
      11  
      12  static int fn2 (struct S);
      13  void fn3 (struct S);
      14  
      15  void
      16  fn1 (struct S p)
      17  {
      18    struct S h = { 0, 0 };
      19    fn3 (p);
      20    fn2 (h);
      21  }
      22  
      23  int
      24  fn2 (struct S p)
      25  {
      26    struct S j = { 0, 0 };
      27    fn3 (p);
      28    fn2 (j);
      29    return 0;
      30  }
      31  
      32  void
      33  fn3 (struct S p)
      34  {
      35    for (; b; a++)
      36      c = p.f0;
      37    fn1 (d);
      38  }
      39  
      40  void
      41  fn4 ()
      42  {
      43    for (;;)
      44      {
      45        struct S f = { 0, 0 };
      46        fn1 (f);
      47      }
      48  }