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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000622-1.c] - Blame information for rev 308

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

Line No. Rev Author Line
1 297 jeremybenn
long foo(long a, long b, long c)
2
{
3
  if (a != 12 || b != 1 || c != 11)
4
    abort();
5
  return 0;
6
}
7
long bar (long a, long b)
8
{
9
  return b;
10
}
11
void baz (long a, long b, void *c)
12
{
13
  long d;
14
  d = (long)c;
15
  foo(d, bar (a, 1), b);
16
}
17
int main()
18
{
19
  baz (10, 11, (void *)12);
20
  exit(0);
21
}

powered by: WebSVN 2.1.0

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