swig/Examples/test-suite/cpp0x_unrestricted_unions.i
2009-08-17 14:42:34 +00:00

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;
%}