(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr51245.c
       1  /* { dg-do compile } */
       2  
       3  struct S { int s; } a, *b, **c;
       4  int d;
       5  
       6  struct S
       7  foo (void)
       8  {
       9    struct S s = { 0 }, *e = &a;
      10    if (d)
      11      **c = *b;
      12    while (1)
      13      {
      14        *b = s;
      15        *e = *b;
      16        if (a.s)
      17  	break;
      18      }
      19    return **c;
      20  }