view gcc/testsuite/gcc.dg/graphite/isl-ast-gen-blocks-3.c @ 158:494b0b89df80 default tip

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

/* We use a global variable 'k' to avoid ipa-cp. */
int k = 50;
static int __attribute__((noinline))
foo ()
{
  int i, res = 0;
  for (i = k/2; i < k; i++)
    res += i;

  return res;
}

extern void abort ();

int
main (void)
{ 
  int res = foo ();

  if (res != 925)
    abort ();

  return 0;
}