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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20000717-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
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.