summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/input_runme.m
blob: 1a92d032bc09f1ba5d8dc5ffefe908cf37ee2540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# do not dump Octave core
if exist("crash_dumps_octave_core", "builtin")
  crash_dumps_octave_core(0);
endif

input

f = Foo();
if (f.foo(2) != 4)
  error
endif

try
  a=f.foo();
  error
catch
end_try_catch

if (!strcmp(sfoo("Hello"),"Hello world"))
  error
endif

try
  a=sfoo();
  error
catch
end_try_catch