* g++.dg/opt/temp1.C (memcpy): Return a value.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Dec 2004 18:01:58 +0000 (18:01 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Dec 2004 18:01:58 +0000 (18:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92646 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/temp1.C

index 7a23ee9..ff08406 100644 (file)
@@ -9,6 +9,8 @@
 
 2004-12-27  Mark Mitchell  <mark@codesourcery.com>
 
+       * g++.dg/opt/temp1.C (memcpy): Return a value.
+
        PR c++/19148
        * g++.dg/expr/cond7.C: New test.
 
index 05dd269..b822dc4 100644 (file)
@@ -20,6 +20,7 @@ void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n)
   while (n--)
     d[n] = s[n];
   ++i;
+  return dest;
 }
  
 struct T {