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

__extension__ typedef __INTPTR_TYPE__ intptr_t;

int a[10][14], b, c, d, e, f, g, h, i;
void bar (void);
int
foo (int x)
{
  unsigned j;
  int k = 0, l;
  int m;
  if (h)
    m = 12;
  else
    m = 13;
  if (a[x][m])
    l = (intptr_t) foo;
  a[x][i] = l;
  while (c)
    {
      if (b)
	{
	  if (f)
	    k = 1;
	  bar ();
	}
      for (; d;)
	j++;
    }
  while (c)
    {
      if (a[x][12])
	{
	  if (g)
	    k = 1;
	  j++;
	}
      c = e;
    }
  return k;
}