PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp30.c
blob245dcfb74c50bbac1ca3f6fdde88fbdb37724250
1 /* { dg-do link } */
2 /* { dg-options "-O2" } */
4 extern int link_error (int);
6 int tst2 (int x, int y)
8 /* VRP should be able to extract range information for
9 x and y out of this TRUTH_AND_EXPR. */
10 if ((x > 5555) && (y < 6666))
12 if (x > 5555)
13 if (y < 6666)
14 return 1111;
15 else
16 return link_error (2222);
17 else
18 if (y < 6666)
19 return link_error (3333);
20 else
21 return link_error (4444);
23 else
24 return 0;
27 int main()
29 return 0;