view gcc/testsuite/gcc.dg/pr88870.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

/* PR rtl-optimization/88870 */
/* { dg-do compile } */
/* { dg-require-effective-target nonlocal_goto } */
/* { dg-options "-O1 -fexceptions -fnon-call-exceptions -ftrapv -fno-tree-dominator-opts" } */

int a, b;

void
foo (int *x)
{
  int c = 0;
  {
    int d;
    x = &c;
    for (;;)
      {
        x = &d;
        b = 0;
        d = c + 1;
        b = c = 1;
        ++a;
      }
  }
}