gcc/testsuite/gcc.c-torture/compile/pr48161.c
raw| 1 | /* 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 | } |