/trunk/Examples/test-suite/return_value_scope.i
Swig | 28 lines | 21 code | 7 blank | 0 comment | 0 complexity | cb02984773abf6b5eee581b35c8e89dc MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- %module return_value_scope
- %inline %{
- namespace Hell {
- class Foo {
- public:
- Foo(int) { };
- };
- class Bar {
- public:
- typedef Foo fooref;
- };
- class Spam {
- public:
- typedef Bar base;
- typedef base::fooref rettype;
- rettype test() {
- return rettype(1);
- }
- };
- }
- %}