view gcc/testsuite/gcc.dg/lto/pr61278_0.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-lto-do link } */
/* { dg-lto-options { { -flto -O0 } } } */
/* { dg-extra-ld-options " -flto -O1 " } */

static unsigned int
fn1 (int p1, int p2)
{
  return 0;
}

char a, b, c;

char
foo (char *p)
{
  int i;
  for (b = 1 ; b > 0; b++)
    {
      for (i = 0; i < 2; i++)
	;
      for (a = 1; a > 0; a++)
	{
	  char d[1] = { 0 };
	  if (*p)
	    break;
	  c ^= fn1 (fn1 (fn1 (0, 0), 0), 0);
	}
    }
  return 0;
}