libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-access-path-13.c
blob87a94f5bf315f78bbc4438e27674f33f940c92fd
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-fre1" } */
4 struct inn
6 int val;
7 };
9 struct biggerstruct
11 int a, b;
14 union foo
16 struct inn inn;
17 struct biggerstruct baz;
18 } *fooptr;
20 struct bar
22 union foo foo;
23 int val2;
24 } *barptr;
26 int
27 test ()
29 union foo foo;
30 foo.inn.val = 0;
31 barptr->val2 = 123;
32 *fooptr = foo;
33 return barptr->val2;
36 /* { dg-final { scan-tree-dump-times "return 123" 1 "fre1"} } */