aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/pr97164.c
blob: 8ffb9289449a2eb18961c998261ced9aba8375d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR tree-optimization/97164 */
/* { dg-do compile } */

typedef struct { int *a; char b[64]; } A __attribute__((aligned (64)));
struct B { A d[4]; } b;	/* { dg-error "size of array element is not a multiple of its alignment" } */
void foo (void);

int *
bar (void)
{
  struct B *h = &b;
  if (h->d[1].a)
    foo ();
  return h->d[1].a;
}