Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fre1" } */
3
4 struct inn
5 {
6 int val;
7 };
8
9 struct biggerstruct
10 {
11 int a, b;
12 };
13
14 union foo
15 {
16 struct inn inn;
17 struct biggerstruct baz;
18 } *fooptr;
19
20 struct bar
21 {
22 union foo foo;
23 int val2;
24 } *barptr;
25
26 int
27 test ()
28 {
29 union foo foo;
30 foo.inn.val = 0;
31 barptr->val2 = 123;
32 *fooptr = foo;
33 return barptr->val2;
34 }
35
36 /* { dg-final { scan-tree-dump-times "return 123" 1 "fre1"} } */