summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/vrp32.c
blob: a42b3ca279e74d26e621856d224274ee75766ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1" } */

int f(int i)
{
  _Bool t = !i;
  int g = !t && i;
  int h = g == 3;
  return h;
}

/* { dg-final { scan-tree-dump "return 0;" "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */