111
|
1 // { dg-do run }
|
|
2 // { dg-options "" }
|
131
|
3 // { dg-require-effective-target alloca }
|
111
|
4 // GROUPS passed builtins
|
|
5 // Apparently not in g++ bug snapshot (was originally sent to bug-gcc)
|
|
6 // Message-Id: <m0p74Fh-0002fCC@neal.ctd.comsat.com>
|
|
7 // Date: Tue, 7 Dec 93 10:23 EST
|
|
8 // From: neal@ctd.comsat.com (Neal Becker)
|
|
9 // Subject: builtin_alloca on hpux (gcc-2.5.6)
|
|
10 // We have to avoid using -ansi, which results in a call to alloca instead of
|
|
11 // the use of __builtin_alloca, and thus ends up being unresolved.
|
|
12
|
|
13 extern "C" int printf (const char *, ...);
|
|
14
|
|
15 void* junk() {
|
|
16 return __builtin_alloca(10);
|
|
17 }
|
131
|
18
|
|
19 int
|
|
20 main() { printf ("PASS\n"); return 0; }
|