PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51957-1.c
blobd899771ad001ba253dc093f3c2e1ae92164b1b15
1 /* PR target/51957 */
2 /* { dg-do link } */
3 /* { dg-options "-O2 -g -fprofile-use" } */
4 /* { dg-additional-sources "pr51957-2.c" } */
6 int v[128];
7 #include "pr51957-1.h"
9 void
10 foo (U *x)
12 T *a = x->u;
13 while (1)
15 union R *b;
16 b = fn1 ();
17 if (b != w[0] && !(v[b->p->c] == 1))
19 fn2 (a->t, "foobar", b->p);
20 b = w[0];
22 if (b != w[0])
23 fn3 ();
24 if (w[0] && b != w[0])
25 fn4 (b->p);
26 if (b != w[0] && (v[b->p->c] == 1) && fn4 (b->p))
27 break;