1 %module anonymous_bitfield 2 3 %inline %{ 4 5 struct Foo { 6 int x : 4; 7 int y : 4; 8 int : 2; 9 unsigned int f : 1; 10 unsigned int : 5; 11 int z : 15; 12 unsigned int : 8+6; 13 unsigned seq : (sizeof(unsigned)*8 - 6); 14 }; 15 16 %} 17 18