aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa-chrec/ssa-chrec-56.c
blob: ba2b69ca867b9195a4a9a5562eb6bd1b1f1fe7af (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 -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++)
    {
      b = b + 3;
      if (b != c)
	remove_me ();
      c = c + 3;
    }
}

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