diff options
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/opt/temp1.C | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 518cf3d..e3e6ae7 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2004-12-23 Mark Mitchell <mark@codesourcery.com> + + * g++.dg/opt/temp1.C: Make memcpy actually copy bytes. + 2004-12-23 Alexandre Oliva <aoliva@redhat.com> * gcc.dg/empty2.c: Add missing dg-warning. diff --git a/gcc/testsuite/g++.dg/opt/temp1.C b/gcc/testsuite/g++.dg/opt/temp1.C index 6454cdb..05dd269 100644 --- a/gcc/testsuite/g++.dg/opt/temp1.C +++ b/gcc/testsuite/g++.dg/opt/temp1.C @@ -15,6 +15,10 @@ int i; extern "C" void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n) { + char *d = (char *) dest; + const char *s = (const char *) src; + while (n--) + d[n] = s[n]; ++i; } |