]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/binop-notand1a.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / binop-notand1a.c
CommitLineData
0816a42a
KT
1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4int
5foo (char a, unsigned short b)
6{
7 return (a & !a) | (b & !b);
8}
9
10/* As long as comparisons aren't boolified and casts from boolean-types
11 aren't preserved, the folding of X & !X to zero fails. */
12/* { dg-final { scan-tree-dump-times "return 0" 1 "optimized" { xfail *-*-* } } } */