summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp68.c
blob: 422c887a521167a43245eede866083f5294a0760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { 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" } } */