Add unions to the nested class test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11729 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9d65c100b9
commit
99565a7c35
1 changed files with 16 additions and 6 deletions
|
|
@ -4,15 +4,20 @@
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
struct Outer {
|
struct Outer {
|
||||||
struct Inner1 {
|
struct InnerStruct1 {
|
||||||
int x;
|
int x;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Inner2 {
|
class InnerClass1 {
|
||||||
public:
|
public:
|
||||||
int x;
|
int x;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
union InnerUnion1 {
|
||||||
|
int x;
|
||||||
|
double y;
|
||||||
|
};
|
||||||
|
|
||||||
class {
|
class {
|
||||||
public:
|
public:
|
||||||
int a;
|
int a;
|
||||||
|
|
@ -27,14 +32,19 @@ struct Outer {
|
||||||
double d;
|
double d;
|
||||||
};
|
};
|
||||||
|
|
||||||
class Inner3 {
|
class InnerClass2 {
|
||||||
public:
|
public:
|
||||||
int x;
|
int x;
|
||||||
} Inner3Name;
|
} InnerClass2Name;
|
||||||
|
|
||||||
struct Inner4 {
|
struct InnerStruct2 {
|
||||||
int x;
|
int x;
|
||||||
} Inner4Name;
|
} InnerStruct2Name;
|
||||||
|
|
||||||
|
union InnerUnion2 {
|
||||||
|
int x;
|
||||||
|
double y;
|
||||||
|
} InnerUnion2Name;
|
||||||
};
|
};
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue