Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / pr37248-1.c
blob4107fd6e2cd88722db6786dd64a7d317d490a764
1 /* PR middle-end/37248 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
5 struct S
7 unsigned char a : 1;
8 unsigned char b : 1;
9 unsigned char c : 1;
10 } s;
12 int
13 foo (struct S x)
15 return x.a && x.b && x.c;
18 /* { dg-final { scan-tree-dump "& 7;" "optimized" } } */
19 /* { dg-final { scan-tree-dump "== 7;" "optimized" } } */
20 /* { dg-final { cleanup-tree-dump "optimized" } } */