Add new test to verify that the array index, limit, and stride are
[official-gcc.git] / gcc / testsuite / gcc.dg / binop-notand4a.c
blob1178cf78826a3ce550a08b1fa03b7c534d92a2ca
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int
5 foo (unsigned char a, _Bool b)
7 return (!a & a) | (b & !b);
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 *-*-* } } } */
13 /* { dg-final { cleanup-tree-dump "optimized" } } */