view gcc/testsuite/gcc.dg/torture/pr89572.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-additional-options "-finline-functions" } */

int vh, it, k1;

void
vn (void)
{
  ++vh;
  if (vh == 0 && it == 0)
    k1 = -k1;
}

__attribute__ ((returns_twice)) void
ef (int *uw)
{
  while (uw != (void *) 0)
    {
      vn ();
      *uw = 0;
    }
}

void
gu (int *uw)
{
  ef (uw);
}