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

naturalvar

f = Foo();
b = Bar();

b.f = f;

cvar.s = "hello";
b.s = "hello";

if (b.s != cvar.s)
    error("failed");
endif