Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr116179-1.C

raw
1 /* { dg-additional-options "-fcompare-debug" } */
2
3 /* PR rtl-optimization/116179 */
4
5 struct g *b;
6 struct g {};
7 void *operator new(__SIZE_TYPE__, void *);
8 enum c {};
9 struct d : g{} * e;
10 c f;
11 struct h {
12 g *k() {
13 d *a;
14 c i;
15 if (a || i == 0 || i == 1)
16 if (e || f)
17 return 0;
18 return new (&j) d;
19 }
20 void n();
21 g j;
22 };
23 void h::n() {
24 for (g *l(b), *m(b); l; l = m, m = 0)
25 k();
26 }