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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [builtin-apply4.c] - Blame information for rev 816

Details | Compare with Previous | View Log

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