Adjust scan string for PIE
[official-gcc.git] / gcc / testsuite / gcc.dg / memmove-1.c
blob498cf60c598959dae32a7fd200d8955f3275e914
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-times "memmove" 0 "optimized" } } */
4 /* { dg-final { cleanup-tree-dump "optimized" } } */
5 static const char a[100]={1,2,3,4};
6 char b[1000];
7 int i,i1;
8 static inline void
9 __attribute__ ((always_inline))
10 domem (void *dest, const void *src, int len)
12 __builtin_memmove (dest, src, len);
14 int
15 t()
17 domem (b,a,100);
18 domem (b+i1,(const void *)b,1);