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

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

Line No. Rev Author Line
1 297 jeremybenn
extern void abort(void);
2
extern void exit(int);
3
 
4
struct baz {
5
  int a, b, c;
6
};
7
 
8
void
9
foo (int a, int b, int c)
10
{
11
  if (a != 4)
12
    abort ();
13
}
14
 
15
void
16
bar (struct baz x, int b, int c)
17
{
18
  foo (x.b, b, c);
19
}
20
 
21
int
22
main ()
23
{
24
  struct baz x = { 3, 4, 5 };
25
  bar (x, 1, 2);
26
  exit (0);
27
}

powered by: WebSVN 2.1.0

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