Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / alias-24.c
blob3f5d6c0c8dd31baf15b8d5f5cd6fa3847e2c1c51
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 void f (const char *c, int *i)
6 *i = 42;
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)
14 *i = 33;
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" } } */