aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tree-ssa/vrp68.c
blob: 4f977f4010b67fbaf59c35e3fb0d6f999a6b3d85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do link } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */

#include "vrp.h"

void test1 (int i, int j, int b)
{
  RANGE(i, 2, 6);
  ANTI_RANGE(j, 1, 7);
  MERGE(b, i, j);
  CHECK_ANTI_RANGE(i, 1, 1);
}
int main() { }

/* VRP will arbitrarily choose ~[1, 1] when merging [2, 6] with ~[1, 7].  */

/* { dg-final { scan-tree-dump-times "link_error" 0 "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */