mirror of https://github.com/swig/swig
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
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
import struct_rename
|
||||||
|
|
||||||
|
b = struct_rename.Bar()
|
|
@ -0,0 +1,11 @@
|
||||||
|
%module struct_rename
|
||||||
|
|
||||||
|
%rename(Bar) Foo;
|
||||||
|
|
||||||
|
%inline %{
|
||||||
|
typedef struct {
|
||||||
|
int x;
|
||||||
|
} Foo;
|
||||||
|
|
||||||
|
%}
|
||||||
|
|
Loading…
Reference in New Issue