LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / memmove-3.c
blob6c786edb95bf8d85b8cdce930efa0d9be33f1167
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-times "memmove" 3 "optimized" } } */
5 char a[40];
6 struct A { char a[30]; };
8 void
9 foo (struct A *p, char *q, char *r)
11 char b[10];
12 __builtin_memmove (&a[1], &a[19], 20);
13 __builtin_memmove (&p->a[1], &p->a[9], 10);
14 __builtin_memmove (q, r, 9);