/trunk/Examples/test-suite/anonymous_bitfield.i
Swig | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | adb6937108416e130550d4c2cc1c0fe9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %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);
- };
- %}