Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arc / cmem-bit-2.c
blob45b49c6dfc3ee74379a8ad6f0c45a223369b2cf2
1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=nps400 -mcmem -O2" } */
4 struct strange_bool
6 unsigned short bool_bit :1;
7 unsigned short other_bits :15;
8 };
10 struct strange_bool a_strange_bool __attribute__((section(".cmem")));
12 extern void bar();
14 void foo() {
15 if (a_strange_bool.bool_bit)
16 bar();
19 /* { dg-final { scan-assembler "xldb r\[0-9\]+,\\\[@a_strange_bool\\\]" } } */
20 /* { dg-final { scan-assembler "btst_s r\[0-9\]+,7" { target arceb-*-* } } } */