1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 void f (const char *c
, int *i
)
7 __builtin_memcpy (i
+ 1, c
, sizeof (int));
8 if (*i
!= 42) __builtin_abort();
11 extern void keepit ();
12 void g (const char *c
, int *i
)
15 __builtin_memcpy (i
- 1, c
, 3 * sizeof (int));
16 if (*i
!= 33) keepit();
19 /* { dg-final { scan-tree-dump-not "abort" "optimized" } } */
20 /* { dg-final { scan-tree-dump "keepit" "optimized" } } */