1 /* This testcase checks whether SWIG correctly uses the sizeof() on the 2 concrete objects and not only types introduced in C++11. */ 3 %module cpp11_sizeof_object 4 5 %inline %{ 6 struct B { 7 unsigned long member1; 8 long long member2; 9 char member3; 10 }; 11 12 struct A { 13 B member; 14 }; 15 16 const int a = sizeof(A::member); 17 %} 18