aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-30.c
blob: 3a36c5173c08d004b1ad3ae3eea0b0cf2fd4089d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */ 
/* { dg-options "-O1 -fscalar-evolutions -fdump-tree-scev-details -fall-data-deps -fdump-tree-ddall" } */

void foo (int);

int main ()
{
  int c[100][200];
  int a;
  int x;
  
  for (a = 1; a < 50; a++)
    {
      x = a;
      c[x-7][1] = c[x+2][3] + c[x-1][2];
      c[x][2] = c[x+2][3];
    }
  foo (c[12][13]);
}

/* { dg-final { diff-tree-dumps "ddall" } } */