1 /* { dg-do compile } */ 2 /* { dg-options "-O -fdump-tree-dse1-details" } */ 3 4 struct A { char c[4]; } a, b; 5 6 void f1(void)7f1 (void) 8 { 9 __builtin_memcpy (&a.c[0], "a", 1); 10 a = b; 11 } 12 13 void f2(void)14f2 (void) 15 { 16 __builtin_memcpy (&a.c[0], "a", 1); 17 __builtin_memcpy (&a.c[0], "cdef", 4); 18 } 19 20 /* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */ 21