aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/evrp3.c
blob: 805652b956a338590e631bcd0c0f2ffd3a0af3be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-evrp-details" } */

int foo (int i);
void bar (int j)
{
  unsigned int i;
  for (i = 0; i < 10; ++i)
    {
      bar (i + 1);
    }
}

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