Sign in
gnu
/
gcc
/
4aef14b09557ce072f1269bd8a05fa2b1df0eda2
/
.
/
gcc
/
testsuite
/
gcc.target
/
i386
/
volatile-bitfields-2.c
blob: d84363315a85131f8d6b2df6527e4b2ef6ffc478 [
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 "mov(q|l).*bits" } } */