summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp30.c
blob: 245dcfb74c50bbac1ca3f6fdde88fbdb37724250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* { dg-do link } */
/* { dg-options "-O2" } */

extern int link_error (int);

int tst2 (int x, int y)
{
  /* VRP should be able to extract range information for
     x and y out of this TRUTH_AND_EXPR.  */
  if ((x > 5555) && (y < 6666))
    {
      if (x > 5555)
        if (y < 6666)
          return 1111;
        else
          return link_error (2222);
      else
        if (y < 6666)
          return link_error (3333);
        else
          return link_error (4444);
    }
  else
    return 0;
}

int main()
{
  return 0;
}