summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/binop-notand5.c
blob: 3b749909423a1a371e80002ae95bd1b5d0741ef6 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */

int
foo (int a, int b)
{
  return (a & (a == 0)) | (b & !b);
}

/* { dg-final { scan-tree-dump-times "return 0" 1 "optimized" } } */