2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.law / builtin1.C
blob67b71a836850ab4db4389eee0b5547ef72f1a2c3
1 // { dg-do run  }
2 // { dg-options "" }
3 // GROUPS passed builtins
4 // Apparently not in g++ bug snapshot (was originally sent to bug-gcc)
5 // Message-Id: <m0p74Fh-0002fCC@neal.ctd.comsat.com>
6 // Date: Tue, 7 Dec 93 10:23 EST
7 // From: neal@ctd.comsat.com (Neal Becker)
8 // Subject: builtin_alloca on hpux (gcc-2.5.6)
9 // We have to avoid using -ansi, which results in a call to alloca instead of
10 //  the use of __builtin_alloca, and thus ends up being unresolved.
12 extern "C" int printf (const char *, ...);
14 void* junk() {
15   return __builtin_alloca(10);
17 main() { printf ("PASS\n");}