1 /* PR target/51957 */
2 /* { dg-do link } */
3 /* { dg-options "-O2 -g -fprofile-use -Wno-missing-profile" } */
4 /* { dg-additional-sources "pr51957-2.c" } */
5
6 int v[128];
7 #include "pr51957-1.h"
8
9 void
10 foo (U *x)
11 {
12 T *a = x->u;
13 while (1)
14 {
15 union R *b;
16 b = fn1 ();
17 if (b != w[0] && !(v[b->p->c] == 1))
18 {
19 fn2 (a->t, "foobar", b->p);
20 b = w[0];
21 }
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;
28 }
29 }