1 // { dg-do run } 2 // { dg-options "-O2" } 3 // Test whether this builtin minimally works in G++. 4 // Origin: Kaveh Ghazi Jan 16, 2001 5 // Copyright (C) 2001 Free Software Foundation. 6 // 7 8 namespace std 9 { 10 extern "C" void abort (void); 11 } 12 main()13int main () 14 { 15 using namespace std; 16 void *foo; 17 18 foo = ::__builtin_alloca (32); 19 if (!foo) 20 abort (); 21 22 return 0; 23 } 24 25