PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / memmove-2.c
blob9d9c8c91fb4c6373a83ef22ef9d114877ac62271
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-times "memmove" 0 "optimized" } } */
5 char a[40];
6 extern void bar (char *);
8 void
9 foo (void)
11 char b[10];
12 __builtin_memmove (&a[0], &a[20], 20);
13 __builtin_memmove (&b[1], &a[25], 9);
14 bar (b);