2018-11-28 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51957-1.c
blobd6712b5be2aa970a3cc18d73750378698cc23c28
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" } */
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;