blob: 302625a199b5b79d950592dcc869895753bf4884 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fno-strict-volatile-bitfields" } */
typedef struct {
char a:1;
char b:7;
int c;
} BitStruct;
volatile BitStruct bits;
int foo ()
{
return bits.b;
}
/* { dg-final { scan-assembler "movl.*bits" } } */