view gcc/testsuite/gcc.dg/torture/pr53168.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, c;
unsigned *d;
int e[1];
void fn1 ();
int fn2 ();
int
fn3 ()
{
  int *f = &a;
  if (fn2 ())
    {
      for (; c; c++)
	{
	  e[a] && (b = 0);
	  fn1 ();
	  if (e[a])
	    return 0;
	}
      for (; c <= 0; c++)
	for (;;)
	  ;
    }
  else
    e[0] = 0 != (d = f);
  return *d;
}