Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arc / bitfield.c
blob187cd1ddb5fe69f92988bd184764499fd818e2d7
1 /* { dg-do run } */
2 /* { dg-options "-O2" } */
4 #include <stdlib.h>
6 struct ubifs_budget_req {
7 unsigned int fast:7;
8 unsigned int new_ino_d:13;
9 };
11 int printf(const char *format, ...);
13 void __attribute__ ((noinline))
14 fff(struct ubifs_budget_req *req)
16 if (req->new_ino_d & 7)
17 abort ();
20 int main (void)
22 struct ubifs_budget_req req = {
23 .fast = 8,
24 .new_ino_d = 0,
26 fff(&req);
27 return 0;