PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 5ms RepoModel.GetById 2ms app.codeStats 0ms

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

#
Objective C | 42 lines | 35 code | 7 blank | 0 comment | 0 complexity | b8a6ca707114e7f78d5ffc7fd95a68b3 MD5 | raw file
 1smart_pointer_not
 2
 3f = Foo();
 4b = Bar(f);
 5s = Spam(f);
 6g = Grok(f);
 7
 8try
 9    x = b.x;
10    error("Error! b.x")
11catch
12end_try_catch
13
14try
15    x = s.x;
16    error("Error! s.x")
17catch
18end_try_catch
19
20try
21    x = g.x;
22    error("Error! g.x")
23catch
24end_try_catch
25
26try
27    x = b.getx();
28    error("Error! b.getx()")
29catch
30end_try_catch
31
32try
33    x = s.getx();
34    error("Error! s.getx()")
35catch
36end_try_catch
37
38try
39    x = g.getx();
40    error("Error! g.getx()")
41catch
42end_try_catch