Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/alias-access-path-8.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fre1" } */
3 struct a {
4 int val;
5 };
6 struct b {
7 struct a a[10],a2[10];
8 };
9 struct c {
10 struct b b[10];
11 } *cptr,*cptr2;
12
13
14 int
15 test (int i, int j, int k, int l)
16 {
17 cptr->b[i].a[j].val=123;
18 cptr2->b[k].a2[l].val=2;
19 return cptr->b[i].a[j].val;
20 }
21 /* { dg-final { scan-tree-dump-times "return 123" 1 "fre1"} } */