summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/lto/20100720-3_0.c
blob: 99c89ebd7fdd39b98c0c26911fc19fa9a6363836 (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 run } */

struct X {
  int a;
};

struct link {
  struct list_node *next;
};

struct list_node {
  struct link lnk;
  struct X *value;
};

void f(struct list_node *lst)
{
  lst->lnk.next = 0;
}

int main(void)
{
  return 0;
}