1 /* PR middle-end/37248 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 
5 struct S
6 {
7   unsigned char a : 1;
8   unsigned char b : 1;
9   unsigned char c : 1;
10 } s;
11 
12 int
foo(struct S x)13 foo (struct S x)
14 {
15   return x.a && x.b && x.c;
16 }
17 
18 /* { dg-final { scan-tree-dump "& 7;" "optimized" } } */
19 /* { dg-final { scan-tree-dump "== 7;" "optimized" } } */
20