add new test case for r to test scalar/vector conflicts
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12927 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
aae9c18e6e
commit
023d597862
2 changed files with 17 additions and 1 deletions
16
Examples/test-suite/r_overload_array.i
Normal file
16
Examples/test-suite/r_overload_array.i
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
%module r_overload_array
|
||||
%include "stl.i"
|
||||
# this tests the situation in which there is a scalar function
|
||||
# corresponding with a vector one
|
||||
|
||||
%inline %{
|
||||
class Foo {
|
||||
public:
|
||||
double bar(double w) {return w;};
|
||||
double bar(double *w) {return w[0];}
|
||||
double bar(std::vector<double> w) {return w[0];}
|
||||
};
|
||||
%}
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue