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

smart_pointer_rename

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

if (b.test() != 3)
    error("failed");
endif

if (b.ftest1(1) != 1)
    error("failed");
endif

if (b.ftest2(2,3) != 2)
    error("failed");
endif