view gcc/testsuite/gcc.dg/torture/pr87342.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */

int ix;

void
o6 (int rh)
{
  if (rh == 0)
    {
      ix = 0;
      while (ix < 1)
	{
	}

      for (;;)
	if (ix == 0)
	  while (rh < 1)
	    {
	      if (rh == 0)
		{
		  __builtin_unreachable ();

kp:
		  if (ix == 0)
		    {
hk:
		      ix = 0;
		    }
		}

	      while (rh < 1)
		if (ix == 0)
		  goto kp;

	      while (rh < 1)
		{
		}
	    }
	else
	  goto kp;
    }

  goto hk;
}