1 /* { dg-options "-fstrict-volatile-bitfields" } */
4 extern int puts(const char *);
5 extern void abort(void) __attribute__((noreturn));
8 volatile unsigned short a:8, b:8;
11 BitStruct bits = {1, 2};
13 void check(int i, int j)
15 if (i != 1 || j != 2) puts("FAIL"), abort();
20 check(bits.a, bits.b);