diff --git a/Examples/test-suite/refcount.i b/Examples/test-suite/refcount.i index f9e69e787..0413e0eda 100644 --- a/Examples/test-suite/refcount.i +++ b/Examples/test-suite/refcount.i @@ -39,7 +39,7 @@ RefCount(B); %include "refcount.h" -%newobject B::create(); +%newobject B::create(A* a); %newobject B::cloner(); %inline %{ @@ -77,6 +77,11 @@ RefCount(B); { B(A* a) : _a(a) {} + A* get_a() + { + return _a; + } + static B* create(A* a) { return new B(a);