git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2009-matevz@11623 626c5289-ae23-0410-ae9c-e8d60b6d4f22
18 lines
321 B
OpenEdge ABL
18 lines
321 B
OpenEdge ABL
/* This testcase checks whether Swig correctly parses the support for types
|
|
without the defined trivial constructor in the unions. */
|
|
%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;
|
|
%}
|
|
|