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 %{
|
||||
struct Outer {
|
||||
struct Inner1 {
|
||||
struct InnerStruct1 {
|
||||
int x;
|
||||
};
|
||||
|
||||
class Inner2 {
|
||||
class InnerClass1 {
|
||||
public:
|
||||
int x;
|
||||
};
|
||||
|
||||
union InnerUnion1 {
|
||||
int x;
|
||||
double y;
|
||||
};
|
||||
|
||||
class {
|
||||
public:
|
||||
int a;
|
||||
|
|
@ -27,14 +32,19 @@ struct Outer {
|
|||
double d;
|
||||
};
|
||||
|
||||
class Inner3 {
|
||||
class InnerClass2 {
|
||||
public:
|
||||
int x;
|
||||
} Inner3Name;
|
||||
} InnerClass2Name;
|
||||
|
||||
struct Inner4 {
|
||||
struct InnerStruct2 {
|
||||
int x;
|
||||
} Inner4Name;
|
||||
} InnerStruct2Name;
|
||||
|
||||
union InnerUnion2 {
|
||||
int x;
|
||||
double y;
|
||||
} InnerUnion2Name;
|
||||
};
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue