2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr37248-1.c
blob492dc9e7a1f66af19256d8ec052b85b017854e02
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" } } */