1 /* PR tree-optimization/86844 */ 2 /* { dg-do compile } */ 3 /* { dg-require-effective-target store_merge } */ 4 /* { dg-options "-O2 -fdump-tree-store-merging" } */ 5 6 void foo(int * p)7foo (int *p) 8 { 9 *p = 0; 10 int one = 1; 11 __builtin_memcpy ((char *) p + 3, &one, sizeof (int)); 12 *((char *)p + 4) = *((char *)p + 36); 13 *((char *)p + 1) = 2; 14 } 15 16 /* { dg-final { scan-tree-dump-not "Merging successful" "store-merging" } } */ 17