/trunk/Examples/test-suite/anonymous_bitfield.i
# · Swig · 17 lines · 13 code · 4 blank · 0 comment · 0 complexity · adb6937108416e130550d4c2cc1c0fe9 MD5 · raw file
- %module anonymous_bitfield
- %inline %{
- struct Foo {
- int x : 4;
- int y : 4;
- int : 2;
- unsigned int f : 1;
- unsigned int : 5;
- int z : 15;
- unsigned int : 8+6;
- unsigned seq : (sizeof(unsigned)*8 - 6);
- };
- %}