mirror of https://github.com/swig/swig
Test identity operation on class references
This commit is contained in:
parent
0da8a9bb44
commit
266766d7c7
|
@ -45,6 +45,9 @@ class FooSubSub : public FooSub {
|
|||
const char* __str__() const { return "FooSubSub"; }
|
||||
};
|
||||
|
||||
Foo& get_reference(Foo& other) { return other; }
|
||||
const Foo& get_const_reference(const Foo& other) { return other; }
|
||||
|
||||
%}
|
||||
|
||||
%{
|
||||
|
|
Loading…
Reference in New Issue