aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-51.c
blob: c0a7f51f8ffa079f2b73c1e365bc1cebe1139b93 (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 
foo (int j)
{
  int i = 0;
  int temp_var;
  
  while (i < 100)
    {
      /* This exercises the analyzer on strongly connected
	 components: here "i -> temp_var -> i".  */
      temp_var = i + j;
      i = temp_var + 2;
    }
  
  return i;
}

/* FIXME. */