diff options
Diffstat (limited to 'Examples/test-suite/octave/smart_pointer_multi_runme.m')
| -rw-r--r-- | Examples/test-suite/octave/smart_pointer_multi_runme.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/test-suite/octave/smart_pointer_multi_runme.m b/Examples/test-suite/octave/smart_pointer_multi_runme.m new file mode 100644 index 0000000..71ef910 --- /dev/null +++ b/Examples/test-suite/octave/smart_pointer_multi_runme.m @@ -0,0 +1,17 @@ +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 + |
