(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
vect/
pr97769.c
       1  /* { dg-do compile } */
       2  /* { dg-additional-options "-O3" } */
       3  
       4  typedef struct {
       5      int alg;
       6      int h1[8];
       7      unsigned d1[1];
       8  } tmp;
       9  typedef struct {
      10      tmp itmp;
      11      tmp otmp;
      12  } h1;
      13  h1 c;
      14  
      15  static void
      16  fn1(char *p1, int p2)
      17  {
      18    int i = 0;
      19    for (; i < 4; i++)
      20      *p1++ = p2;
      21  }
      22  
      23  static void
      24  fn2(tmp *p1)
      25  {
      26    char *d = (char *)p1->d1;
      27    int *b = p1->h1;
      28    for (int a = 0; a; a++, d += 4)
      29      fn1(d, *b++);
      30  }
      31  
      32  void fn3() { fn2(&(&c)->otmp); }