test %array_class and %array_functions of non primitive type added

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9667 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-04-02 21:26:47 +00:00
commit 1f76e733a9
2 changed files with 70 additions and 0 deletions

View file

@ -7,3 +7,18 @@
%array_functions(int,intArray);
%array_class(double, doubleArray);
%inline %{
typedef struct {
int x;
int y;
} XY;
typedef struct {
int a;
int b;
} AB;
%}
// Note that struct XY { ... }; gives compiler error for C when using %array_class or %array_functions, but is okay in C++
%array_class(XY, XYArray)
%array_functions(AB, ABArray)