aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-plugin/lto-12c.c
blob: ecd1bd48a1c70fb1ae48cea3e6faf417160adb13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <string.h>

extern int value;

void *memcpy(void *dest, const void *src, size_t n)
{
  char *d = (char *) dest;
  const char *s = (const char *) src;

  while (n--)
    *d++ = *s++;

  value = 1;
  return dest;
}