OSDN Git Service

G++ no longer defines builtins that do not begin with __builtin.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / builtins2.C
index 48e53f1..9c55b76 100644 (file)
@@ -7,8 +7,6 @@
 namespace std 
 {
   extern "C" void abort (void);
-  extern "C" char *strcpy (char *, const char *);
-  extern "C" int memcmp (const void *, const void *, __SIZE_TYPE__);
 }
 
 int main ()
@@ -16,25 +14,9 @@ int main ()
   using namespace std;
   char f[16];
   
-  if (strcpy (f, "hello world") != f
-      || memcmp (f, "hello world", sizeof ("hello world")))
-    abort ();
-
-  if (std::strcpy (f, "bye world") != f
-      || memcmp (f, "bye world", sizeof ("bye world")))
-    abort ();
-
   if (::__builtin_strcpy (f, "hello world") != f
-      || memcmp (f, "hello world", sizeof ("hello world")))
+      || __builtin_memcmp (f, "hello world", sizeof ("hello world")))
     abort ();
   
   return 0;
 }
-
-extern "C"
-{
-  static char * ::strcpy (char *, const char *)
-  {
-    std::abort ();
-  }
-}