1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
struct a { unsigned int bitfield : 3; }; int main() { struct a a; a.bitfield = 131; foo (a.bitfield); exit (0); } foo(unsigned int z) { if (z != 3) abort (); }