Debian Codegraph @

gcc/testsuite/g++.dg/opt/pr80436.C

raw
1 // PR debug/80436
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-O3 -fcompare-debug" }
4
5 void fn (...);
6 void foo (int, int, int);
7 struct { int elt1; int bits; } *a;
8 int b, d;
9
10 int
11 bar (unsigned *x)
12 {
13 if (0)
14 next_bit:
15 return 1;
16 while (1)
17 {
18 if (b)
19 if (a->bits)
20 goto next_bit;
21 *x = b;
22 if (a->elt1)
23 return 0;
24 a = 0;
25 }
26 }
27
28 enum { C0, C1 } *c;
29
30 void
31 baz ()
32 {
33 int e, m = d;
34 for (; e < m; e++)
35 {
36 if (e < 0)
37 foo (0, 0, c[e]);
38 unsigned f;
39 for (; bar (&f);)
40 fn (f);
41 }
42 }