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] - Rev 774

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

/* PR bootstrap/48161 */
 
struct T { int u; };
struct G { int l; int t; int r; };
struct V { struct G v[10]; };
struct { struct V b; } *h;
void bar (void);
 
struct G *
baz (struct V *x, unsigned y)
{
  return &x->v[y];
}
 
int
foo (struct T *x, struct T *y)
{
  if ((baz (&h->b, y->u)->t ? baz (&h->b, y->u)->t : 0)
      - baz (h ? &h->b : 0, x->u)->r
      - (baz (h ? &h->b : 0, x->u)->t > 0 ? 5 : 0))
    return 1;
  bar ();
  return 0;
}
 

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

powered by: WebSVN 2.1.0

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