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