summaryrefslogtreecommitdiff
path: root/Examples/test-suite/octave/smart_pointer_multi_typedef_runme.m
blob: c2ab787144e15e2c4d784bbf1449c8ca73949bdd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
smart_pointer_multi_typedef

f = Foo();
b = Bar(f);
s = Spam(b);
g = Grok(b);

s.x = 3;
if (s.getx() != 3)
    error("failed");
endif

g.x = 4;
if (g.getx() != 4)
    error("failed");
endif