(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
torture/
pr54409.c
       1  /* { dg-do compile } */
       2  
       3  int b;
       4  
       5  struct S
       6  {
       7    char *p;
       8    struct {
       9    } s;
      10    int a;
      11  };
      12  
      13  static _Bool
      14  fn2 (int *p1)
      15  {
      16    if (b)
      17      {
      18        struct S *c = (struct S *) &p1;
      19        return c->a;
      20      }
      21  }
      22  
      23  _Bool
      24  fn3 (struct S *p1)
      25  {
      26    if (fn2 ((int *) &p1->s))
      27      return 0;
      28  }