summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/ret_by_value_runme.m
blob: c1c50835340b92bf1a586a6b6c7fd217d4179e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
  crash_dumps_octave_core(0);
endif

ret_by_value

a = ret_by_value.get_test();
if (a.myInt != 100)
    error("failed");
endif

if (a.myShort != 200)
    error("failed");
endif