libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-19.c
blob0a3e4994963dc02ed719a129fe4e26ac88e439be
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1" } */
4 struct a
6 union
8 int a;
9 int b;
11 union
13 int c;
14 int d;
16 int e;
19 int f(struct a *c)
21 int d;
22 c->e = 2;
23 d = c->a;
24 c->c = 1;
25 return c->a + d;
28 /* We should have CSEd the load from c->a. */
30 /* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre1" } } */