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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [builtin-apply4.c] - Rev 154

Compare with Previous | Blame | View Log

/* PR tree-optimization/20076 */
/* { dg-options "-O2" } */
/* { dg-do run } */
 
extern void abort (void);
 
double
foo (int arg)
{
  if (arg != 116)
    abort();
  return arg + 1;
}
 
inline double
bar (int arg)
{
  foo (arg);
  __builtin_return (__builtin_apply ((void (*) ()) foo,
				     __builtin_apply_args (), 16));
}
 
int
main (int argc, char **argv)
{
  if (bar (116) != 117.0)
    abort ();
 
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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