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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr48161.c] - Blame information for rev 688

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR bootstrap/48161 */
2
 
3
struct T { int u; };
4
struct G { int l; int t; int r; };
5
struct V { struct G v[10]; };
6
struct { struct V b; } *h;
7
void bar (void);
8
 
9
struct G *
10
baz (struct V *x, unsigned y)
11
{
12
  return &x->v[y];
13
}
14
 
15
int
16
foo (struct T *x, struct T *y)
17
{
18
  if ((baz (&h->b, y->u)->t ? baz (&h->b, y->u)->t : 0)
19
      - baz (h ? &h->b : 0, x->u)->r
20
      - (baz (h ? &h->b : 0, x->u)->t > 0 ? 5 : 0))
21
    return 1;
22
  bar ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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