/trunk/Examples/test-suite/octave/smart_pointer_member_runme.m
MATLAB | 39 lines | 24 code | 15 blank | 0 comment | 6 complexity | 40096acabe1886128579aaddb08eff35 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- smart_pointer_member
- f = Foo();
- f.y = 1;
- if (f.y != 1)
- error
- endif
- b = Bar(f);
- b.y = 2;
- if (f.y != 2)
- error("f.y = %i, b.y = %i",f.y,b.y)
- endif
- if (swig_this(b.x) != swig_this(f.x))
- error
- endif
- if (b.z != f.z)
- error
- endif
- try
- if (Foo.z == Bar.z)
- error
- endif
- error
- catch
- end_try_catch
-