1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-vrp1 -fno-thread-jumps" } */
11 foo (struct A
*p
, struct A
*q
)
19 /* This should be folded to 'if (1)' because q is [p, p]
24 /* This should be folded to 'if (1)' because q should be
25 ~[0, 0] and thus &q->a should be ~[0, 0]. */
34 /* { dg-final { scan-tree-dump-times "Folding predicate q_.*to 1" 1 "vrp1" } } */
35 /* { dg-final { scan-tree-dump-times "Folding predicate r_.*to 1" 1 "vrp1" } } */