import source from 1.3.40
[external/swig.git] / Examples / test-suite / octave / inout_runme.m
1 inout
2
3 a = inout.AddOne1(1);
4 if (a != 2)
5   error
6 endif
7
8 a = inout.AddOne3(1,1,1);
9 if (a != [2,2,2])
10   error
11 endif
12
13 a = inout.AddOne1p((1,1));
14 if (a != (2,2))
15   error
16 endif
17
18 a = inout.AddOne2p((1,1),1);
19 if (a != [(2,2),2])
20   error
21 endif
22
23 a = inout.AddOne3p(1,(1,1),1);
24 if (a != [2,(2,2),2])
25   error
26 endif
27