view gcc/testsuite/gcc.dg/torture/pr61438.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 run } */

extern void abort (void);

int a, c, **d, e, g;
static int b = 1;

struct
{
  int f0;
} f;

void
foo ()
{
  int h, *i = &a;
  for (; e;)
    {
      for (c = 0; c < 1; c++)
	for (; b;)
	  ;
      for (;;)
	{
	  if (a)
	    {
	      for (; f.f0; f.f0++)
		;
	      if (g)
		break;
	    }
	  for (h = 0; h < 2; h++)
	    {
	      i = *d;
	      if (!i)
		abort ();
	    }
	}
    }
  if (!i)
    abort ();
}

int
main ()
{
  foo (); 
  return 0;
}