(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr79499.c
       1  /* PR middle-end/79499 */
       2  /* { dg-do compile { target split_stack } } */
       3  /* { dg-options "-O2 -fsplit-stack -fno-omit-frame-pointer" } */
       4  
       5  struct S { struct S *a, *b; };
       6  
       7  void
       8  foo (struct S *x)
       9  {
      10    do
      11      x->b = x->a;
      12    while (x = x->a);
      13  }