Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.law/builtin1.C

raw
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: <[email protected]>
6 // Date: Tue, 7 Dec 93 10:23 EST
7 // From: [email protected] (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
18 int
19 main() { printf ("PASS\n"); return 0; }