Skip to content

Commit 266766d

Browse files
committed
Test identity operation on class references
1 parent 0da8a9b commit 266766d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Examples/test-suite/cpp_basic.i

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ class FooSubSub : public FooSub {
4545
const char* __str__() const { return "FooSubSub"; }
4646
};
4747

48+
Foo& get_reference(Foo& other) { return other; }
49+
const Foo& get_const_reference(const Foo& other) { return other; }
50+
4851
%}
4952

5053
%{

0 commit comments

Comments
 (0)