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

using_protected

f = FooBar();
f.x = 3;

if (f.blah(4) != 4)
    error("blah(int)")
endif