Added testcase cpp0x_sizeof_object. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11538 626c5289-ae23-0410-ae9c-e8d60b6d4f22
17 lines
332 B
OpenEdge ABL
17 lines
332 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);
|
|
%}
|