new test
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5050 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
812477a1b5
commit
bf892ecf11
3 changed files with 15 additions and 0 deletions
|
|
@ -285,6 +285,7 @@ C_TEST_CASES += \
|
||||||
ret_by_value \
|
ret_by_value \
|
||||||
sizeof_pointer \
|
sizeof_pointer \
|
||||||
sneaky1 \
|
sneaky1 \
|
||||||
|
struct_rename \
|
||||||
typemap_subst \
|
typemap_subst \
|
||||||
unions
|
unions
|
||||||
|
|
||||||
|
|
|
||||||
3
Examples/test-suite/python/struct_rename_runme.py
Normal file
3
Examples/test-suite/python/struct_rename_runme.py
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
import struct_rename
|
||||||
|
|
||||||
|
b = struct_rename.Bar()
|
||||||
11
Examples/test-suite/struct_rename.i
Normal file
11
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