1 2 3 4 5 6 7 8 9 10 11 12
/* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-vrp1" } */ int foo(int i) { if (i < 0 || i >= 5) return i == 1; return 1; } /* { dg-final { scan-tree-dump-not "i_.* == 1" "vrp1" } } */ /* { dg-final { cleanup-tree-dump "vrp1" } } */