| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Wno-return-type" } */ |
| 3 |
|
| 4 |
typedef struct a *b; |
| 5 |
template <typename c, typename d> c e(d); |
| 6 |
enum f { g, h, i }; |
| 7 |
enum j { k, l, m, aa }; |
| 8 |
struct a { |
| 9 |
f ab; |
| 10 |
}; |
| 11 |
struct af { |
| 12 |
} n; |
| 13 |
struct ah; |
| 14 |
class al; |
| 15 |
b q; |
| 16 |
void r(a *); |
| 17 |
struct o : af {}; |
| 18 |
struct p : o {}; |
| 19 |
struct ag : p {}; |
| 20 |
j s(af *); |
| 21 |
b t(); |
| 22 |
f fn4(); |
| 23 |
unsigned fn5(ag *); |
| 24 |
b u(ag *, unsigned); |
| 25 |
af *v(b(b), b); |
| 26 |
static bool w(al *, af *, b(b), b aw, b *ax, j) { |
| 27 |
r(ax[2]); |
| 28 |
if (aw) |
| 29 |
return false; |
| 30 |
} |
| 31 |
ag *ay; |
| 32 |
void x(al *at, b as(b), b bb, b bc) { |
| 33 |
switch (bb->ab) |
| 34 |
case i: |
| 35 |
if (af *bd = v(as, bb)) |
| 36 |
if (e<ah *>(bd)) |
| 37 |
switch (fn4()) |
| 38 |
case h: { |
| 39 |
b be; |
| 40 |
switch (be->ab) |
| 41 |
case i: |
| 42 |
if (af *bf = v(as, be)) |
| 43 |
if (e<ah *>(bf)) |
| 44 |
if (ag *bg = e<ag *>(bf)) |
| 45 |
switch (s(bg)) { |
| 46 |
case k: |
| 47 |
if (fn5(bg) == 1) { |
| 48 |
b bh = u(bg, 0); |
| 49 |
bh = t(); |
| 50 |
switch (bc->ab) |
| 51 |
case g: { |
| 52 |
b ax[]{be, bh, bc}; |
| 53 |
w(at, &n, as, q, ax, k); |
| 54 |
} |
| 55 |
} |
| 56 |
break; |
| 57 |
case l: |
| 58 |
if (fn5(bg) == 1) { |
| 59 |
b bh = u(bg, 0); |
| 60 |
bh = t(); |
| 61 |
switch (bc->ab) |
| 62 |
case g: { |
| 63 |
b ax[]{be, bh, bc}; |
| 64 |
w(at, &n, as, q, ax, l); |
| 65 |
} |
| 66 |
} |
| 67 |
} |
| 68 |
} |
| 69 |
else switch (s(ay)) { |
| 70 |
case k: |
| 71 |
if (fn5(ay) == 1) { |
| 72 |
b be = u(ay, 0); |
| 73 |
be = t(); |
| 74 |
switch (bc->ab) |
| 75 |
case g: { |
| 76 |
b ax[]{bb, be, bc}; |
| 77 |
w(at, &n, as, q, ax, k); |
| 78 |
} |
| 79 |
} |
| 80 |
break; |
| 81 |
case l: |
| 82 |
if (fn5(ay) == 1) { |
| 83 |
b be = u(ay, 0); |
| 84 |
be = t(); |
| 85 |
switch (bc->ab) |
| 86 |
case g: { |
| 87 |
b ax[]{bb, be, bc}; |
| 88 |
w(at, &n, as, q, ax, l); |
| 89 |
} |
| 90 |
} |
| 91 |
break; |
| 92 |
case m: |
| 93 |
if (fn5(ay) == 1) { |
| 94 |
b be = u(ay, 0); |
| 95 |
be = t(); |
| 96 |
switch (bc->ab) |
| 97 |
case g: { |
| 98 |
b ax[]{bb, be, bc}; |
| 99 |
w(at, &n, as, q, ax, m); |
| 100 |
} |
| 101 |
} |
| 102 |
break; |
| 103 |
case aa: |
| 104 |
if (fn5(ay) == 1) { |
| 105 |
b be = u(ay, 0); |
| 106 |
be = t(); |
| 107 |
switch (bc->ab) |
| 108 |
case g: { |
| 109 |
b ax[]{bb, be, bc}; |
| 110 |
w(at, &n, as, q, ax, aa); |
| 111 |
} |
| 112 |
} |
| 113 |
} |
| 114 |
} |