/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
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- 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