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

enum_template

if (enum_template.MakeETest() != 1)
  error
endif

enum_template.TakeETest(0);
try
  a=enum_template.TakeETest(0);
  error
catch
end_try_catch