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

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

/* { dg-do compile } */

int a, b;
short c;

void f(void)
{
  int a = 0;
  int *k = 0;

  for(; a < 2; a++);

  if(!!(b |= a < 3) - 1)
    {
      if(0)
	for (;; a++)
	  {
	    for (; c; *k = 0);
lbl1:
	    ;
	  }

      for(; *k; k++)
	{
	  c = b ? : a;

	  if (c)
	    lbl2:
		b = 0;
	}
      goto lbl1;
    }

  for(;; b++)
    {
      if(b)
	goto lbl2;

      k = &b;
    }
}