view gcc/testsuite/gcc.dg/torture/pr84830.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 } */
/* { dg-additional-options "-fno-tree-ch -fno-tree-vrp" } */

int x0;

void
br (int yp, int oo)
{
  int *qi = &yp;

  if (oo == 0)
    {
g8:
      if (x0 != 0)
	x0 = yp;
      else if (oo != 0)
	x0 = yp;

      if (x0 == 0)
	{
	  *qi = 0;
	  x0 = *qi;
	}

      if (x0 != 0)
	{
	  ++oo;
	  goto g8;
	}

      if (yp == oo)
	yp += !!oo;
    }
  else
    {
      x0 = 1;
      while (x0 < 2)
	{
	  qi = &oo;
	  ++oo;
	  x0 = 1;
	}
    }

  goto g8;
}