libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-83.c
blobcf6be22937732c27ea621a73e9250d008515ca54
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-fre1-details" } */
4 struct X
6 int a : 1;
7 int b : 1;
8 } x;
10 void foo (int v)
12 x.a = 1;
13 x.b = v;
14 x.a = 1;
15 x.b = v;
18 struct Y
20 _Bool a;
21 _Bool b;
22 } y;
24 void bar (int v)
26 y.a = 1;
27 y.b = v;
28 y.a = 1;
29 y.b = v;
32 /* { dg-final { scan-tree-dump-times "Deleted redundant store" 4 "fre1" } } */