OSDN Git Service

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