OpenMP: Constructors and destructors for "declare target" static aggregates: Fix...
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / block-0.c
blob2a9f7482d758e957f5a2b88daef1b915d348558c
1 #define DEBUG 0
2 #if DEBUG
3 #include <stdio.h>
4 #endif
6 #define N 1000
7 int a[N];
9 static int __attribute__((noinline))
10 foo (void)
12 int j;
13 int i;
15 /* This is not blocked as it is not profitable. */
16 for (i = 0; i < N; i++)
17 for (j = 0; j < N; j++)
18 a[j] = a[i] + 1;
20 return a[0];
23 extern void abort ();
25 int
26 main (void)
28 int i, res;
30 for (i = 0; i < N; i++)
31 a[i] = i;
33 res = foo ();
35 #if DEBUG
36 fprintf (stderr, "res = %d \n", res);
37 #endif
39 if (res != 1999)
40 abort ();
42 return 0;
45 /* { dg-final { scan-tree-dump "not tiled" "graphite" } } */