view gcc/testsuite/gcc.dg/torture/pr59166.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR rtl-optimization/59166 */
/* { dg-additional-options "-fcompare-debug" } */
/* { dg-xfail-if "compare-debug failure" { powerpc-ibm-aix* } } */

int a, b, c, f, g;

void
foo ()
{
  for (; b; b++)
    for (; f; f = g)
      for (; a;)
	;
}

static int
bar (int p)
{
  short d;
  if (c)
    {
      for (; f; f = g);
      foo ();
      d = p;
      char e = d;
      if (p)
	return 1;
    }
  return p;
}

int
main ()
{
  bar (0);
  bar (g);
  return 0;
}