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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 688 jeremybenn
int foo (int, int, int);
2
int bar (int, int, int);
3
 
4
int main (void)
5
{
6
  if (foo (5, 10, 21) != 12)
7
    abort ();
8
 
9
  if (bar (9, 12, 15) != 150)
10
    abort ();
11
 
12
  exit (0);
13
}
14
 
15
int foo (int x, int y, int z)
16
{
17
  return (x + y + z) / 3;
18
}
19
 
20
int bar (int x, int y, int z)
21
{
22
  return foo (x * x, y * y, z * z);
23
}

powered by: WebSVN 2.1.0

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