2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / volatile-bitfields-2.c
blob302625a199b5b79d950592dcc869895753bf4884
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fno-strict-volatile-bitfields" } */
4 typedef struct {
5 char a:1;
6 char b:7;
7 int c;
8 } BitStruct;
10 volatile BitStruct bits;
12 int foo ()
14 return bits.b;
17 /* { dg-final { scan-assembler "movl.*bits" } } */