test added for nested unnamed C struct %extend
This commit is contained in:
parent
2aa540b9c0
commit
5d78f14b1c
2 changed files with 15 additions and 2 deletions
|
|
@ -44,6 +44,13 @@
|
|||
return $self->num;
|
||||
}
|
||||
}
|
||||
|
||||
%extend FOO_bar {
|
||||
void bar_extend() {
|
||||
$self->d = 1;
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
%inline %{
|
||||
|
|
@ -72,5 +79,13 @@ typedef struct {
|
|||
int num;
|
||||
} lowB_instance;
|
||||
} NestedB;
|
||||
|
||||
typedef struct {
|
||||
int a;
|
||||
union {
|
||||
char c;
|
||||
int d;
|
||||
} bar;
|
||||
} FOO;
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue