2016-10-06 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr77855.c
blobbec5af320134bd8b7984238eda57797a06b0dc2f
1 /* { dg-do run } */
3 int a, b = 1, c, e, f, g, k, m, n, o;
4 char d, h, i, j, l;
5 char res[2];
7 void __attribute__ ((noinline,noclone)) fn2 ()
9 d = 2;
12 void fn3 ()
14 for (;;)
16 for (; b; b--)
18 fn2 ();
19 if (e)
20 j = 1;
21 if (f)
22 L1:
23 k = j | (a & l);
24 for (;;)
26 __builtin_snprintf (res, 2, "%d\n", d);
27 if (d)
28 break;
29 for (; o; o--)
30 for (; n;)
31 for (; m; m++)
33 goto L1;
36 g = h;
37 c = i;
38 break;
42 int main ()
44 fn3 ();
45 if (res[0] != '2')
46 __builtin_abort ();
47 return 0;