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

grouping

x = grouping.test1(42);
if (x != 42)
    error("failed");
endif

grouping.test2(42);

x = (grouping.do_unary(37, grouping.NEGATE));
if (x != -37)
    error("failed");
endif

grouping.cvar.test3 = 42;