summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/graphite/scop-12.c
blob: 68e120504889f35406fb4385bcf129f5766f0fc2 (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
32
33
34
35
void bar ();

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

  switch (i)
    {
    
      case 5:
        for (j = 0; j <= 20; j++)
          a[j] = b + i + 12;
        break;
      case 8:
        for (j = 0; j <= 20; j++)
          a[j] = b + i + 122;
        break;
      case 15:
        for (j = 0; j <= 20; j++)
          a[j] = b + i + 12;
        break;
      case 18:
        for (j = 0; j <= 20; j++)
          a[j] = b + i + 4;
        break;
     default:
        for (j = 0; j <= 20; j++)
          a[j] = b + i + 3;
   }

  return a[b];
}

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