1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_eabi } */
3 /* { dg-options "-O2" } */
4
5 typedef struct {
6 char a:1;
7 char b:7;
8 int c;
9 } BitStruct;
10
11 volatile BitStruct bits;
12
13 int foo ()
14 {
15 return bits.b;
16 }
17
18 /* { dg-final { scan-assembler "ldrb\[\\t \]+\[^\n\]*,\[\\t \]*\\\[\[^\n\]*\\\]" } } */