view gcc/testsuite/gcc.dg/graphite/pr68715-2.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 84e7813d76e9
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-options "-Ofast -floop-nest-optimize" } */

int a, b, c, d, f, g;
int e[1], h[1];
void fn2 ();
void fn3 ();
void
fn1 ()
{
  fn2 ();
  b = 0;
  for (; b < 10; b++)
    ;
}

void
fn2 ()
{
  if (a)
    {
      fn3 ();
      c = d;
    }
}

void
fn3 ()
{
  for (; g; g++)
    e[g] = 2;
  if (f)
    for (; g; g++)
      h[g] = 5;
}