Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / volatile-bitfields-2.c
blobea1af391fccaa50429611653b1198b7e8b61c774
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_eabi } */
3 /* { dg-options "-O2" } */
5 typedef struct {
6 volatile unsigned long a:8;
7 volatile unsigned long b:8;
8 volatile unsigned long c:16;
9 } BitStruct;
11 BitStruct bits;
13 unsigned long foo ()
15 return bits.b;
18 /* { dg-final { scan-assembler "ldr\[\\t \]+\[^\n\]*,\[\\t \]*\\\[\[^\n\]*\\\]" } } */