* g++.dg/opt/temp1.C (memcpy): Return a value.
authorMark Mitchell <mark@codesourcery.com>
Mon, 27 Dec 2004 18:01:58 +0000 (18:01 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Mon, 27 Dec 2004 18:01:58 +0000 (18:01 +0000)
From-SVN: r92646

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

index 7a23ee9368e991f6873ff2f67f1575813e224e96..ff084064e7fa40f9f7bd5407f2c600b3d0a4f13d 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 05dd2697171ae7e746c74f6e394ce9a03ae38488..b822dc464fe19ebdbbd5148b4fe6ce421919b694 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 {