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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [921208-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 688 jeremybenn
double
2
f(double x)
3
{
4
  return x*x;
5
}
6
 
7
double
8
Int(double (*f)(double), double a)
9
{
10
  return (*f)(a);
11
}
12
 
13
main()
14
{
15
  if (Int(&f,2.0) != 4.0)
16
    abort();
17
  exit (0);
18
}

powered by: WebSVN 2.1.0

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