libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-fre-82.c
blobe245488b80d840b7791c8f0ed2a98a1cad661420
1 /* { dg-do run } */
2 /* { dg-options "-O -fdump-tree-fre1-details" } */
4 struct S { _Bool x; };
6 void
7 foo (struct S *s)
9 __builtin_memset (s, 1, sizeof (struct S));
10 s->x = 1;
13 int
14 main ()
16 struct S s;
17 foo (&s);
18 char c;
19 __builtin_memcpy (&c, &s.x, 1);
20 if (c != 1)
21 __builtin_abort ();
22 return 0;
25 /* { dg-final { scan-tree-dump "Deleted redundant store" "fre1" } } */