fix varin typemap
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6896 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7cb488e057
commit
b316e6445a
3 changed files with 31 additions and 6 deletions
|
|
@ -140,6 +140,7 @@ CPP_TEST_CASES += \
|
|||
features \
|
||||
friends \
|
||||
global_ns_arg \
|
||||
global_vars \
|
||||
grouping \
|
||||
ignore_parameter \
|
||||
import_nomodule \
|
||||
|
|
|
|||
22
Examples/test-suite/global_vars.i
Normal file
22
Examples/test-suite/global_vars.i
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
%module global_vars
|
||||
|
||||
%inline %{
|
||||
|
||||
|
||||
struct A
|
||||
{
|
||||
int x;
|
||||
};
|
||||
|
||||
|
||||
A a;
|
||||
A *ap;
|
||||
const A *cap;
|
||||
A &ar = a;
|
||||
|
||||
int x;
|
||||
int *xp;
|
||||
void *vp;
|
||||
|
||||
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue