swig/Examples/test-suite/cpp0x_unrestricted_unions.i
2009-07-24 08:52:35 +00:00

16 lines
184 B
OpenEdge ABL

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