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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [stackalign/] [builtin-apply-4.c] - Blame information for rev 754

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/20076 */
2
/* { dg-do run } */
3
 
4
extern void abort (void);
5
 
6
double
7
foo (int arg)
8
{
9
  if (arg != 116)
10
    abort();
11
  return arg + 1;
12
}
13
 
14
inline double
15
bar (int arg)
16
{
17
  foo (arg);
18
  __builtin_return (__builtin_apply ((void (*) ()) foo,
19
                                     __builtin_apply_args (), 16));
20
}
21
 
22
int
23
main (int argc, char **argv)
24
{
25
  if (bar (116) != 117.0)
26
    abort ();
27
 
28
  return 0;
29
}

powered by: WebSVN 2.1.0

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