swig/SWIG/Examples/test-suite/ret_by_value.i
Dave Beazley 516036631c The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2002-11-30 22:01:28 +00:00

19 lines
281 B
OpenEdge ABL

/* Simple test to check SWIG's handling of return by value */
%module ret_by_value
%warnfilter(801) test; /* Ruby, wrong class name */
%inline %{
typedef struct {
int myInt;
short myShort;
} test;
test get_test() {
test myTest = {100, 200};
return myTest;
}
%}