Rename r_base_test to overload_method as it is a useful test for all languages
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4e3428ff66
commit
bee885dfe0
4 changed files with 6 additions and 6 deletions
20
Examples/test-suite/overload_method.i
Normal file
20
Examples/test-suite/overload_method.i
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/* This test confirms the fix to sourceforge bug #3478922 for R */
|
||||
|
||||
%module overload_method
|
||||
%inline %{
|
||||
class Base
|
||||
{
|
||||
public:
|
||||
|
||||
Base() : x(42) {}
|
||||
|
||||
int method() const { return x; }
|
||||
|
||||
void overloaded_method(int aArg) { x = aArg; }
|
||||
int overloaded_method() const { return x; }
|
||||
|
||||
private:
|
||||
|
||||
int x;
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue