]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/graphite/scop-11.c
a scalar depending on vdefs in the current region is not invariant
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / graphite / scop-11.c
CommitLineData
255b6be7 1void bar ();
2
7eb20e71 3int toto (int i, int b)
255b6be7 4{
7eb20e71 5 int j;
255b6be7 6 int a[100];
7
7eb20e71 8 for (j = 0; j <= 20; j++)
9 a[j] = b + i;
10
11 if (a[12] == 23)
12 b = 3;
13 else
14 b = 1;
255b6be7 15
16 for (j = 0; j <= 20; j++)
17 a[j] = b + i;
18
19 return a[b];
20}
21
13f421d5 22/* { dg-final { scan-tree-dump-times "number of SCoPs: 0" 1 "graphite"} } */