OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.old-deja/] [g++.law/] [builtin1.C] - Blame information for rev 699

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 699 jeremybenn
// { 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: 
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");}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.