/trunk/Examples/test-suite/octave/smart_pointer_multi_runme.m
# · MATLAB · 17 lines · 13 code · 4 blank · 0 comment · 2 complexity · ac25c0bda3c45d44b683aa6bdb09de65 MD5 · raw file
- smart_pointer_multi
- f = Foo();
- b = Bar(f);
- s = Spam(b);
- g = Grok(b);
- s.x = 3;
- if (s.getx() != 3)
- error
- endif
- g.x = 4;
- if (g.getx() != 4)
- error
- endif