PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/return_value_scope.i

#
Swig | 28 lines | 21 code | 7 blank | 0 comment | 0 complexity | cb02984773abf6b5eee581b35c8e89dc MD5 | raw file
 1%module return_value_scope
 2%inline %{
 3
 4namespace Hell {
 5class Foo {
 6public:
 7    Foo(int) { };
 8};
 9
10class Bar {
11public:
12   typedef Foo fooref;
13};
14
15class Spam {
16public:
17   typedef Bar base;
18   typedef base::fooref rettype;
19   rettype test() {
20       return rettype(1);
21   }
22};
23}
24%}
25
26
27
28