aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr51760.c
blob: ebff2c930436b14e5c8cbbb1f861b5e4e785864d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */

extern inline __attribute__ ((always_inline)) void *
memmove (void *dest, const void *src, __SIZE_TYPE__ len)
{
  return __builtin___memmove_chk (dest, src, len,
				  __builtin_object_size (dest, 0));
}

void
foo (void)
{
  char a[64], *b;
  for (;;)
    {
      memmove (a, b, 0);
      b = a;
    }
}