OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [builtin-apply2.c] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR target/12503 */
2
/* Origin: <pierre.nguyen-tuong@asim.lip6.fr> */
3
 
4
/* Verify that __builtin_apply behaves correctly on targets
5
   with pre-pushed arguments (e.g. SPARC).  */
6
 
7
/* { dg-do run } */
8
 
9
 
10
#define INTEGER_ARG  5
11
 
12
extern void abort(void);
13
 
14
void foo(char *name, double d, double e, double f, int g)
15
{
16
  if (g != INTEGER_ARG)
17
    abort();
18
}
19
 
20
void bar(char *name, ...)
21
{
22
  __builtin_apply(foo, __builtin_apply_args(), 64);
23
}
24
 
25
int main(void)
26
{
27
  bar("eeee", 5.444567, 8.90765, 4.567789, INTEGER_ARG);
28
 
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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