aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-26.c
blob: f702553411816c90b1d04274817792d2d767b08e (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
/* APPLE LOCAL file lno */
/* { dg-do compile } */ 
/* { dg-options "-O1 -floop-test -fdump-tree-lptest-details" } */


int bar (void);

int foo ()
{
  int a = -100;
  int b = -10;
  
  /* This exercises a code with two loop nests.  */
  
  while (a)
    a++;
  
  while (b)
    b++;
}

/* a  ->  {-100, +, 1}_1
   b  ->  {-10, +, 1}_2
*/

/* FIXME. */