aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/isl-ast-gen-blocks-1.c
blob: cd67d87534eab1d7f52739fe8356bb857625826f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
int n = 50;
static int __attribute__((noinline))
foo ()
{
  int i, res;
  for (i = 0, res = 0; i < n; i++)
    res += i;

  return res;
}

extern void abort ();

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


  if (res != 1225)
    abort ();

  return 0;
}