1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-tree-fre -fdump-tree-vrp1" } */
11 int test1 (struct foo1
*x
)
21 int test2 (struct foo2
*x
)
25 else if (x
->i
== -1) /* This test is already folded to false by ccp1. */
30 int test3 (struct foo1
*x
)
34 else if (x
->i
== 1) /* This test is already folded to false by fold. */
39 int test4 (struct foo2
*x
)
41 unsigned int i
= x
->i
;
49 /* { dg-final { scan-tree-dump-times "if" 2 "vrp1" } } */