test added for nested unnamed C struct %extend

This commit is contained in:
Vladimir Kalinin 2014-05-14 00:56:39 +04:00
commit 5d78f14b1c
2 changed files with 15 additions and 2 deletions

View file

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