aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-38.c
blob: e5fb813c5ffc74d686a8fd6a74b371d1cc969980 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O -fdump-tree-ccp1" } */

int foo (_Bool x)
{
  _Bool t = 1;
  _Bool xx = !x;
  _Bool y = xx == t;
  _Bool z = y == x;
  return z ? 1 : 0;
}

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