import source from 1.3.40
[external/swig.git] / Examples / test-suite / ret_by_value.i
1 /* Simple test to check SWIG's handling of return by value */
2
3 %module ret_by_value
4
5 %warnfilter(SWIGWARN_RUBY_WRONG_NAME) test; /* Ruby, wrong class name */
6
7 %inline %{
8
9 typedef struct {
10    int myInt;
11    short myShort;
12 } test;
13
14 test get_test() {
15     test myTest = {100, 200};
16     return myTest;
17 }
18
19 %}