(root)/
gcc-13.2.0/
gcc/
testsuite/
c-c++-common/
pr97164.c
       1  /* PR tree-optimization/97164 */
       2  /* { dg-do compile } */
       3  
       4  typedef struct { int *a; char b[64]; } A __attribute__((aligned (64)));
       5  struct B { A d[4]; } b;	/* { dg-error "size of array element is not a multiple of its alignment" } */
       6  void foo (void);
       7  
       8  int *
       9  bar (void)
      10  {
      11    struct B *h = &b;
      12    if (h->d[1].a)
      13      foo ();
      14    return h->d[1].a;
      15  }