PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dse-13.c
blob33f100bbe57cc9277b5b83b1f0ac6bca81788b9c
1 /* { dg-do compile } */
2 /* { dg-options "-O -fdump-tree-dse1-details" } */
4 struct A { char c[4]; } a, b;
6 void
7 f1 (void)
9 __builtin_memcpy (&a.c[0], "a", 1);
10 a = b;
13 void
14 f2 (void)
16 __builtin_memcpy (&a.c[0], "a", 1);
17 __builtin_memcpy (&a.c[0], "cdef", 4);
20 /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */