Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / scop-7.c
blobc02748fa71acfe995d950a54698788adf4305fa3
1 void bar (void);
3 int toto()
5 int i, j, k;
6 int a[100][100];
7 int b[100];
9 for (i = 1; i < 100; i++)
11 for (j = 1; j < 100; j++)
12 b[i+j] = b[i+j-1] + 2;
14 if (i * 2 == i + 8)
16 bar ();
17 for (j = 1; j < 100; j++)
18 b[i+j] = b[i+j-1] + 2;
20 else
21 a[i][i] = 2;
23 for (k = 1; k < 100; k++)
24 b[i+k] = b[i+k-5] + 2;
27 return a[3][5] + b[1];
30 /* { dg-final { scan-tree-dump-times "number of SCoPs: 3" 1 "graphite"} } */
31 /* { dg-final { cleanup-tree-dump "graphite" } } */