OSDN Git Service

* gcc.c-torture/execute/builtin-abs-1.c
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.c-torture / execute / builtins / mempcpy-2.c
@@ -8,7 +8,6 @@ extern void abort (void);
 typedef __SIZE_TYPE__ size_t;
 extern void *mempcpy (void *, const void *, size_t);
 extern int memcmp (const void *, const void *, size_t);
-extern char *stpcpy (char *, const char *);
 extern int inside_main;
 
 long buf1[64];
@@ -16,7 +15,7 @@ char *buf2 = (char *) (buf1 + 32);
 long buf5[20];
 char buf7[20];
 
-int
+void
 __attribute__((noinline))
 test (long *buf3, char *buf4, char *buf6, int n)
 {
@@ -141,21 +140,6 @@ test (long *buf3, char *buf4, char *buf6, int n)
   if (mempcpy (buf4 + 14, buf6, n + 2) != buf2 + 16
       || memcmp (buf2, "aBcdRSTUVWkSmnrsq\0", 19))
     abort ();
-
-  /* Now stpcpy tests.  */
-  if (stpcpy ((char *) buf3, "abcdefghijklmnop") != (char *) buf1 + 16
-      || memcmp (buf1, "abcdefghijklmnop", 17))
-    abort ();
-
-  if (__builtin_stpcpy ((char *) buf3, "ABCDEFG") != (char *) buf1 + 7
-      || memcmp (buf1, "ABCDEFG\0ijklmnop", 17))
-    abort ();
-
-  if (stpcpy ((char *) buf3 + i++, "x") != (char *) buf1 + 5
-      || memcmp (buf1, "ABCDx\0G\0ijklmnop", 17))
-    abort ();
-
-  return 0;
 }
 
 void