2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / graphite / scop-21.c
blobbd3f811d9d11d58a341993b5eab15eb1f103afb6
1 #define N 10000
2 void foo (int);
3 int test ()
5 int a[N+6];
6 int i;
8 for (i = 0; i < N; i++)
9 a[i] += 32;
11 for (i = 0; i < N; i++)
13 a[i] = i + 12;
15 if (i == 40)
16 a[i] = i;
17 else
18 a[i] = i+1;
21 a[i] = i + 12;
22 a[i] = a[i+1];
23 a[i] += a[i+2];
24 a[i] += a[i+3];
25 a[i] += a[i+4];
26 a[i] += a[i+5];
27 a[i] += a[i+6];
31 return a[20];
33 /* { dg-final { scan-tree-dump-times "number of SCoPs: 1" 1 "graphite"} } */