Added testcase for cpp0x unrestricted unions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11435 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Matevz Jekovec 2009-07-22 17:48:38 +00:00
commit f9a385c6a6
2 changed files with 17 additions and 0 deletions

View file

@ -409,6 +409,7 @@ CPP0X_TEST_CASES = \
cpp0x_function_objects
# cpp0x_alternate_function_syntax # not fully implemented yet
# cpp0x_hash_types # not fully implemented yet
# cpp0x_unrestricted_unions # not supported by any compilers yet
# cpp0x_smart_pointers # not supported by standard library yet
# cpp0x_constexpr # not supported by any compilers yet
# cpp0x_thread_local # not supported by any compilers yet

View file

@ -0,0 +1,16 @@
%module cpp0x_unrestricted_unions
%inline %{
struct point {
// point() {}
// point(int x, int y) : x_(x), y_(y) {}
int x_, y_;
};
union P {
int z;
double w;
point p;
} p1;
%}