aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-52.c
blob: 94f43e3d51ab15b7a3aab8b55d539a19d77b7d2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* APPLE LOCAL file lno */
/* { dg-do compile } */ 
/* { dg-options "-O1 -floop-test -fdump-tree-lptest-details  " } */

int bar (int);

int foo (void)
{
  int a;
  int parm = 11;
  int x;
  int c[100];
  
  for (a = parm; a < 50; a++)
    {
      /* Array access functions have to be analyzed.  */
      x = a + 5;
      c[x] = c[x+2] + c[x-1];
    }
  bar (c[1]);
}

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