Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/930630-1.c

raw
1 /* { dg-additional-options "-std=gnu89" } */
2 /* The bit-field below would have a problem if __INT_MAX__ is too
3 small. */
4 #if __INT_MAX__ < 2147483647
5 int
6 main (void)
7 {
8 exit (0);
9 }
10 #else
11 main ()
12 {
13 struct
14 {
15 signed int bf0:17;
16 signed int bf1:7;
17 } bf;
18
19 bf.bf1 = 7;
20 f (bf.bf1);
21 exit (0);
22 }
23
24 f (x)
25 int x;
26 {
27 if (x != 7)
28 abort ();
29 }
30 #endif