111
|
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.
|
|
11
|
|
12 extern "C" int printf (const char *, ...);
|
|
13
|
|
14 void* junk() {
|
|
15 return __builtin_alloca(10);
|
|
16 }
|
|
17 main() { printf ("PASS\n");}
|