OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr21562.c] - Blame information for rev 302

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

Line No. Rev Author Line
1 297 jeremybenn
/* { dg-options "-fno-inline" } */
2
struct foo { int a, b, c; };
3
void abort(void);
4
void exit(int);
5
 
6
void
7
brother (int a, int b, int c)
8
{
9
  if (a)
10
    abort ();
11
}
12
 
13
void
14
sister (struct foo f, int b, int c)
15
{
16
  brother ((f.b == b), b, c);
17
}
18
 
19
int
20
main ()
21
{
22
  struct foo f = { 7, 8, 9 };
23
  sister (f, 1, 2);
24
  exit (0);
25
}

powered by: WebSVN 2.1.0

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