New testcase
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4844 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
c3b517df76
commit
664a3638bb
2 changed files with 20 additions and 1 deletions
18
SWIG/Examples/test-suite/arrays_dimensionless.i
Normal file
18
SWIG/Examples/test-suite/arrays_dimensionless.i
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
%module arrays_dimensionless
|
||||
|
||||
%warnfilter(462) globalints; /* Unable to set variable of type int [] */
|
||||
%warnfilter(462) ints; /* Unable to set variable of type int [] */
|
||||
|
||||
%inline %{
|
||||
|
||||
int globalints[] = {100, 200, 300};
|
||||
const int constglobalints[] = {400, 500, 600};
|
||||
|
||||
struct Bar {
|
||||
static int ints[];
|
||||
};
|
||||
int Bar::ints[] = {700, 800, 900};
|
||||
|
||||
%}
|
||||
|
||||
|
|
@ -66,10 +66,11 @@ CPP_TEST_CASES += \
|
|||
anonymous_arg \
|
||||
anonymous_bitfield \
|
||||
argout \
|
||||
array_member \
|
||||
arrayref \
|
||||
arrays_dimensionless \
|
||||
arrays_global \
|
||||
arrays_global_twodim \
|
||||
array_member \
|
||||
arrays_scope \
|
||||
bloody_hell \
|
||||
bool_default \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue