new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
d2fe2be00b
commit
d627ea5370
3 changed files with 15 additions and 0 deletions
|
|
@ -285,6 +285,7 @@ C_TEST_CASES += \
|
|||
ret_by_value \
|
||||
sizeof_pointer \
|
||||
sneaky1 \
|
||||
struct_rename \
|
||||
typemap_subst \
|
||||
unions
|
||||
|
||||
|
|
|
|||
3
SWIG/Examples/test-suite/python/struct_rename_runme.py
Normal file
3
SWIG/Examples/test-suite/python/struct_rename_runme.py
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import struct_rename
|
||||
|
||||
b = struct_rename.Bar()
|
||||
11
SWIG/Examples/test-suite/struct_rename.i
Normal file
11
SWIG/Examples/test-suite/struct_rename.i
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
%module struct_rename
|
||||
|
||||
%rename(Bar) Foo;
|
||||
|
||||
%inline %{
|
||||
typedef struct {
|
||||
int x;
|
||||
} Foo;
|
||||
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue