summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20101125-1_0.c
blob: 662dd243dc7e9a6db153f4d794c5be9ac1b77d4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-lto-do link } */

struct X {
  int i;
};

struct W {
  struct U *p;
  struct X *q;
};

struct U {
  struct W a[1];
};

void foo(struct U *ptr)
{
  ptr->a[0].p = 0;
}

int main(void)
{
  return 0;
}