1  /* PR tree-optimization/59417 */
       2  /* { dg-skip-if "ptxas times out" { nvptx-*-* } { "-O1" "-O2" "-Os" } { "" } } */
       3  
       4  int a, b, d;
       5  short c;
       6  
       7  void
       8  f (void)
       9  {
      10    if (b)
      11      {
      12        int *e;
      13  
      14        if (d)
      15  	{
      16  	  for (; b; a++)
      17  	  lbl1:
      18  	    d = 0;
      19  
      20  	  for (; d <= 1; d++)
      21  	    {
      22  	      int **q = &e;
      23  	      for (**q = 0; **q <= 0; **q++)
      24  		d = 0;
      25  	    }
      26  	}
      27      }
      28  
      29    else
      30      {
      31        int t;
      32        for (c = 0; c < 77; c++)
      33  	for (c = 0; c < 46; c++);
      34        for (; t <= 0; t++)
      35        lbl2:
      36  	;
      37        goto lbl1;
      38      }
      39    goto lbl2;
      40  }