Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/ext.c

raw
1 /* { dg-additional-options "-std=gnu89" } */
2
3 /* The bit-field below would have a problem if __INT_MAX__ is too
4 small. */
5 #if __INT_MAX__ < 2147483647
6 int
7 main (void)
8 {
9 exit (0);
10 }
11 #else
12 struct foo
13 {
14 unsigned b31 : 1;
15 unsigned b30 : 1;
16 unsigned b29 : 1;
17 unsigned b28 : 1;
18 unsigned rest : 28;
19 };
20 foo(a)
21 struct foo a;
22 {
23 return a.b30;
24 }
25 #endif