swig/Examples/test-suite/cpp0x_sizeof_object.i
2010-06-26 22:48:49 +00:00

17 lines
315 B
OpenEdge ABL

/* This testcase checks whether SWIG correctly uses the sizeof() on the
concrete objects and not only types introduced in C++0x. */
%module cpp0x_sizeof_object
%inline %{
struct B {
unsigned long member1;
long long member2;
char member3;
};
struct A {
B member;
};
const int a = sizeof(A::member);
%}