OSDN Git Service

Modify the testsuite for the new Graphite.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / graphite / scop-5.c
1 void bar ();
2
3 int toto()
4 {
5   int i,j, b;
6   int a[100];
7
8   if (i == 20)
9     {
10       for (j = 0; j <= 20; j++)
11         a[j] = b + i;
12       b = 3;
13       bar();
14     }
15   else 
16     {
17       if (i == 30)
18         {
19           for (j = 0; j <= 20; j++)
20             a[j] = b + i;
21           b = 5;
22         }
23       else
24         {
25           for (j = 0; j <= 20; j++)
26             a[j] = b + i;
27           b = 8;
28         }
29     }
30
31   return a[b];
32 }
33
34 /* { dg-final { scan-tree-dump-times "number of SCoPs: 3" 1 "graphite"} } */ 
35 /* { dg-final { cleanup-tree-dump "graphite" } } */