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/] [20000717-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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