1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
extern void abort (void); struct type { int *a; int b:16; unsigned int p:9; } t; unsigned int foo () { return t.p; } int main (void) { t.p = 8; if (foo (t) != 8) abort (); return 0; }