2017-09-26 Thomas Koenig <tkoenig@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / memmove-1.c
blobe22a8076091330c1f48bff51cf625d349e3a2d52
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-times "memmove" 0 "optimized" } } */
4 static const char a[100]={1,2,3,4};
5 char b[1000];
6 int i,i1;
7 static inline void
8 __attribute__ ((always_inline))
9 domem (void *dest, const void *src, int len)
11 __builtin_memmove (dest, src, len);
13 int
14 t()
16 domem (b,a,100);
17 domem (b+i1,(const void *)b,1);