OSDN Git Service

Formatting fixes.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / builtins3.C
index 4a67b28..ace31b0 100644 (file)
@@ -1,13 +1,13 @@
+// { dg-do run  }
+// { dg-options "-O2" }
 // Test whether this builtin minimally works in G++.
 // Origin: Kaveh Ghazi Jan 16, 2001
 // Copyright (C) 2001 Free Software Foundation.
 //
-// Special g++ Options: -O2
 
 namespace std 
 {
   extern "C" void abort (void);
-  extern "C" void *alloca (__SIZE_TYPE__);
 }
 
 int main ()
@@ -15,14 +15,6 @@ int main ()
   using namespace std;
   void *foo;
   
-  foo = alloca (32);
-  if (!foo)
-    abort ();
-
-  foo = std::alloca (32);
-  if (!foo)
-    abort ();
-
   foo = ::__builtin_alloca (32);
   if (!foo)
     abort ();
@@ -30,10 +22,3 @@ int main ()
   return 0;
 }
 
-extern "C"
-{
-  static void * ::alloca (__SIZE_TYPE__)
-  {
-    std::abort ();
-  }
-}