1 /* { dg-do compile } */ 2 /* { dg-options "-O1 -fdump-tree-dse1-details" } */ 3 4 char*g; f()5char* f(){ 6 char*p=__builtin_malloc(42); 7 __builtin_memset(p,3,33); 8 __builtin_memset(p,7,10); 9 return p; 10 } h()11void h(){ 12 char*p=__builtin_malloc(42); 13 g=__builtin_memset(p,3,10); 14 } 15 16 /* { dg-final { scan-tree-dump-not "Deleted dead" "dse1" } } */ 17