re PR testsuite/51655 (FAIL: c-c++-common/tm/memcpy-1.c (test for excess errors))
authorPatrick Marlier <patrick.marlier@gmail.com>
Fri, 6 Jan 2012 21:58:44 +0000 (21:58 +0000)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 6 Jan 2012 21:58:44 +0000 (13:58 -0800)
PR testsuite/51655
        * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of
        including <string.h>.

From-SVN: r182972

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/tm/memcpy-1.c

index e96146d231cb7d050b2eb2cd5504cf79a8ed3a12..8fc06e4c6f5d808330ddd6e846248436abc49733 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-06  Patrick Marlier  <patrick.marlier@gmail.com>
+
+       PR testsuite/51655
+       * c-c++-common/tm/memcpy-1.c: Declare memcpy instead of
+       including <string.h>. 
+
 2012-01-06  Jason Merrill  <jason@redhat.com>
 
        * g++.dg/abi/mangle51.C: New.
index fa841b261647c8389242111aca2d6aa83f3cbd27..873e14bb1bc2452257575acd42a8e644541ce55d 100644 (file)
@@ -1,6 +1,10 @@
 /* { dg-do compile } */
 /* { dg-options "-fgnu-tm" } */
-#include <string.h>
+typedef __SIZE_TYPE__ size_t;
+#ifdef __cplusplus
+extern "C"
+#endif
+void *memcpy (void *__restrict, const void *__restrict, size_t);
 
 __attribute__((transaction_safe))
 void *wmemcpy(void *dest, const void *src, size_t n)