add test case for bug #1439898
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8941 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9044d078be
commit
9d1cab9dee
1 changed files with 16 additions and 0 deletions
|
|
@ -25,3 +25,19 @@
|
|||
#define MS_NOOVERRIDE -1111
|
||||
|
||||
%}
|
||||
|
||||
|
||||
%inline %{
|
||||
typedef struct {
|
||||
int a;
|
||||
int b;
|
||||
} a_t, *b_t;
|
||||
|
||||
a_t* make_a() {
|
||||
return (a_t*)malloc(sizeof(a_t));
|
||||
};
|
||||
|
||||
b_t make_b() {
|
||||
return make_a();
|
||||
};
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue