blob: f11a8aff5ac81de051750e8032f1eae35c15266f [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O2 -fstrict-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 "mov(b|zbl).*bits" } } */