PageRenderTime 4ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/smart_pointer_multi_runme.m

#
Objective C | 17 lines | 13 code | 4 blank | 0 comment | 4 complexity | ac25c0bda3c45d44b683aa6bdb09de65 MD5 | raw file
 1smart_pointer_multi
 2
 3f = Foo();
 4b = Bar(f);
 5s = Spam(b);
 6g = Grok(b);
 7
 8s.x = 3;
 9if (s.getx() != 3)
10    error
11endif
12
13g.x = 4;
14if (g.getx() != 4)
15    error
16endif
17