PR middle-end/66314
[official-gcc.git] / gcc / testsuite / gcc.dg / pr66899.c
blob1fff18153aa740cfc02051e6b8d3b31c42090c17
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fprofile-arcs" } */
4 struct
6 int authority;
7 } * a, *b, c, d;
8 int e, f;
9 static int
10 fn1 ()
12 if (a)
13 goto verified;
14 if (b)
15 goto matched;
16 return -126;
17 matched:
18 e = 0;
19 verified:
20 if (b)
21 for (; &c != b; c = d)
23 return 0;
26 int
27 fn2 ()
29 for (;;)
31 f = fn1 ();
32 switch (f)
34 case -126:
35 continue;
36 default:
37 return 0;