summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp33.c
blob: 75fefa49925d463a28f07ff1f2863b5c77865252 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1 -fno-tree-fre" } */

/* This is from PR14052.  */

int f2(int x) { return x == 1 || x == 3 || x == 1; }

/* { dg-final { scan-tree-dump "Folding predicate.*== 1 to 0" "vrp1" } } */