Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/ld/testsuite/ld-plugin/lto-12c.c
2023-03-06 14:48:14 +01:00

15 lines
222 B
C

#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;
}