summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/evrp2.c
blob: e6d423555c1fd5660588057cf1ab613cfcd888b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-evrp" } */

int foo (int i);
int bar2 (int j)
{
  if (j > 2)
    {
      if (j < 7)
	return foo (j + 1);
      else
	return foo (j + 2);
    }
  return j;
}


/* { dg-final { scan-tree-dump "\\\[4, 7\\\]" "evrp" } } */