1 /* { dg-do compile } */
2 
3 int ix;
4 
5 void
o6(int rh)6 o6 (int rh)
7 {
8   if (rh == 0)
9     {
10       ix = 0;
11       while (ix < 1)
12 	{
13 	}
14 
15       for (;;)
16 	if (ix == 0)
17 	  while (rh < 1)
18 	    {
19 	      if (rh == 0)
20 		{
21 		  __builtin_unreachable ();
22 
23 kp:
24 		  if (ix == 0)
25 		    {
26 hk:
27 		      ix = 0;
28 		    }
29 		}
30 
31 	      while (rh < 1)
32 		if (ix == 0)
33 		  goto kp;
34 
35 	      while (rh < 1)
36 		{
37 		}
38 	    }
39 	else
40 	  goto kp;
41     }
42 
43   goto hk;
44 }
45