PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr66899.c
blob23ecc539c0629d393791aef9ea8a26c083273d85
1 /* { dg-do compile } */
2 /* { dg-options "-Os -fprofile-arcs" } */
3 /* { dg-require-profiling "-fprofile-generate" } */
5 struct
7 int authority;
8 } * a, *b, c, d;
9 int e, f;
10 static int
11 fn1 ()
13 if (a)
14 goto verified;
15 if (b)
16 goto matched;
17 return -126;
18 matched:
19 e = 0;
20 verified:
21 if (b)
22 for (; &c != b; c = d)
24 return 0;
27 int
28 fn2 ()
30 for (;;)
32 f = fn1 ();
33 switch (f)
35 case -126:
36 continue;
37 default:
38 return 0;