1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
// { dg-options "-w -ansi -pedantic-errors -funsigned-bitfields" } extern "C" void abort (void); #include "bitfield1.h" void bitfield1_y (A& a) { if (a.bitS != -1) abort (); if (a.bitU != 1) abort (); if (a.bit != 1) abort (); }