add in global array variable

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9668 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-04-02 21:37:13 +00:00
commit 6efec03cda
2 changed files with 39 additions and 2 deletions

View file

@ -12,10 +12,14 @@ typedef struct {
int x;
int y;
} XY;
XY globalXYArray[3];
typedef struct {
int a;
int b;
} AB;
AB globalABArray[3];
%}
// Note that struct XY { ... }; gives compiler error for C when using %array_class or %array_functions, but is okay in C++