1 /* PR tree-optimization/21294
2 VRP did not notice that an address of the form &p->i is nonnull
3 when p is known to be nonnull. In this testcase, noticing that
4 allows us to eliminate the second "if" statement. */
6 /* { dg-do compile } */
7 /* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-vrp-details" } */
22 /* { dg-final { scan-tree-dump-times "Folding predicate" 1 "vrp"} } */
23 /* { dg-final { cleanup-tree-dump "vrp" } } */