PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
Objective C | 39 lines | 24 code | 15 blank | 0 comment | 10 complexity | 40096acabe1886128579aaddb08eff35 MD5 | raw file
 1smart_pointer_member
 2
 3f = Foo();
 4f.y = 1;
 5
 6if (f.y != 1)
 7  error
 8endif
 9
10b = Bar(f);
11b.y = 2;
12
13if (f.y != 2)
14  error("f.y = %i, b.y = %i",f.y,b.y)
15endif
16
17if (swig_this(b.x) != swig_this(f.x))
18  error
19endif
20
21if (b.z != f.z)
22  error
23endif
24
25try
26  if (Foo.z == Bar.z)
27    error
28  endif
29    error
30catch
31end_try_catch
32
33  
34
35
36
37
38
39