PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/anonymous_bitfield.i

#
Swig | 17 lines | 13 code | 4 blank | 0 comment | 0 complexity | adb6937108416e130550d4c2cc1c0fe9 MD5 | raw file
 1%module anonymous_bitfield 
 2
 3%inline %{
 4
 5struct 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