1 /* { dg-do run { xfail rx-*-* } } */
2 /* { dg-skip-if "skipped until patch for generic zero=width bit-field handling is accepted" { rx-*-* } } */
3 /* { dg-options "-msim" } */
4 /* Note: The -msim above is actually there to override the default
5    options which do not allow the GCC extension of zero-width bitfields.  */
6 
7 extern void abort (void);
8 extern void exit  (int);
9 
10 struct S_zero
11 {
12   int   f1: 4;
13   int   f2: 0;
14   short f3: 4;
15 } S_zero;
16 
17 struct S_norm
18 {
19   int   f1: 4;
20   short f3: 4;
21 } S_norm;
22 
23 
24 int
main(void)25 main (void)
26 {
27   if (sizeof (S_zero) != 4 || sizeof (S_norm) != 8)
28     abort ();
29 
30   exit (0);
31   return 0;
32 }
33