Fix partial overloading warning messages appearing
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12527 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5f4d8c6112
commit
c8b89bd075
4 changed files with 32 additions and 3 deletions
13
Examples/test-suite/errors/cpp_overload_const.i
Normal file
13
Examples/test-suite/errors/cpp_overload_const.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module xxx
|
||||
|
||||
void check(const int *v) {}
|
||||
void check(int *v) {}
|
||||
void check(int &v) {}
|
||||
void check(const int &v) {} // note: no warning as marshalled by value
|
||||
|
||||
struct OverStruct {};
|
||||
void check(const OverStruct *v) {}
|
||||
void check(OverStruct *v) {}
|
||||
void check(OverStruct &v) {}
|
||||
void check(const OverStruct &v) {}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue