aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-57.c
blob: a873b9fc314f7ced42093c2cb2a89cf7bdbe83c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */ 
/* { dg-options "-O1 -fscalar-evolutions -ftree-elim-checks -fdump-tree-elck-details -fdump-tree-optimized" } */

void remove_me (void);

int main (void)
{
  int a = -100;
  int b = 0;
  int c = 3;
  
  for (a = 0; a < 100; a++)
    {
      if (b > c)
	remove_me ();
      b = b + 2;
      c = c + 3;
    }
}


/* { dg-final { scan-tree-dump-times "remove_me" 0 "optimized"} } */