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.c-torture/] [execute/] [20000717-5.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
typedef struct trio { int a, b, c; } trio;
2
 
3
int
4
bar (int i, int j, int k, trio t)
5
{
6
  if (t.a != 1 || t.b != 2 || t.c != 3 ||
7
      i != 4 || j != 5 || k != 6)
8
    abort ();
9
}
10
 
11
int
12
foo (trio t, int i, int j, int k)
13
{
14
  return bar (i, j, k, t);
15
}
16
 
17
main ()
18
{
19
  trio t = { 1, 2, 3 };
20
 
21
  foo (t, 4, 5, 6);
22
  exit (0);
23
}

powered by: WebSVN 2.1.0

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