| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-std=c++11 -O -fipa-cp -fipa-cp-clone --param=ipa-cp-max-recursive-depth=94 --param=logical-op-non-short-circuit=0" } */ |
| 3 |
|
| 4 |
enum a {}; |
| 5 |
struct m; |
| 6 |
struct n { |
| 7 |
a d; |
| 8 |
}; |
| 9 |
int o(int, int); |
| 10 |
struct p { |
| 11 |
char d; |
| 12 |
char aa; |
| 13 |
p *ab; |
| 14 |
bool q() const { |
| 15 |
int h = d & 4; |
| 16 |
return h; |
| 17 |
} |
| 18 |
char r() const { return aa; } |
| 19 |
int s(const m *, bool) const; |
| 20 |
} l; |
| 21 |
struct t { |
| 22 |
p *ac; |
| 23 |
p *u() { return ac; } |
| 24 |
p *v(int); |
| 25 |
}; |
| 26 |
int w(const p *, const p *, const m *, int = 0); |
| 27 |
struct m : n { |
| 28 |
struct { |
| 29 |
t *ad; |
| 30 |
} ae; |
| 31 |
char x() const; |
| 32 |
p *y(int z) const { return ae.ad ? nullptr : ae.ad->v(z); } |
| 33 |
} j; |
| 34 |
int w(const p *z, const p *af, const m *ag, int ah) { |
| 35 |
int a, g = z->s(ag, true), i = af->s(ag, true); |
| 36 |
if (af->q()) { |
| 37 |
if (ag->x()) |
| 38 |
return 0; |
| 39 |
ah++; |
| 40 |
char b = af->r(); |
| 41 |
p *c = ag->y(b), *e = ag->ae.ad->u(); |
| 42 |
int d = w(z, c, ag, ah), f = w(z, af ? e : af->ab, ag, ah); |
| 43 |
a = f ? d : f; |
| 44 |
return a; |
| 45 |
} |
| 46 |
if (g || i == 1) |
| 47 |
return ag->d ? o(g, i) : o(g, i); |
| 48 |
return 0; |
| 49 |
} |
| 50 |
void ai() { |
| 51 |
for (p k;;) |
| 52 |
w(&k, &l, &j); |
| 53 |
} |