Commit 8f8883b1 by Mark Mitchell Committed by Mark Mitchell

* g++.dg/opt/temp1.C (memcpy): Return a value.

From-SVN: r92646
parent e98a8b5b
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
2004-12-27 Mark Mitchell <mark@codesourcery.com> 2004-12-27 Mark Mitchell <mark@codesourcery.com>
* g++.dg/opt/temp1.C (memcpy): Return a value.
PR c++/19148 PR c++/19148
* g++.dg/expr/cond7.C: New test. * g++.dg/expr/cond7.C: New test.
......
...@@ -20,6 +20,7 @@ void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n) ...@@ -20,6 +20,7 @@ void *memcpy (void *dest, const void *src, __SIZE_TYPE__ n)
while (n--) while (n--)
d[n] = s[n]; d[n] = s[n];
++i; ++i;
return dest;
} }
struct T { struct T {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment