Debian Codegraph @

gcc/testsuite/gcc.c-torture/execute/930621-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 f ()
12 {
13 struct {
14 int x : 18;
15 int y : 14;
16 } foo;
17
18 foo.x = 10;
19 foo.y = 20;
20
21 return foo.y;
22 }
23
24 main ()
25 {
26 if (f () != 20)
27 abort ();
28 exit (0);
29 }
30 #endif