summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/scop-11.c
blob: 4a7286993c505aa8583a999ab9a931afb673f26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
void bar ();

int toto()
{
  int i,j, b;
  int a[100];

  if (i == 20)
    {
      for (j = 0; j <= 20; j++)
        a[j] = b + i;
      b = 3;
      bar();
    }
  else 
    {
      if (i == 30)
	{
          for (j = 0; j <= 20; j++)
            a[j] = b + i;
	  b = 5;
	}
    }

  for (j = 0; j <= 20; j++)
    a[j] = b + i;

  return a[b];
}

/* { dg-final { scan-tree-dump-times "number of SCoPs: 3" 1 "graphite"} } */