new tests
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4269 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
4ae8960abf
commit
08705104df
3 changed files with 20 additions and 1 deletions
13
Examples/test-suite/cast_operator.i
Normal file
13
Examples/test-suite/cast_operator.i
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%module cast_operator
|
||||
%inline %{
|
||||
struct A
|
||||
{
|
||||
operator char*() const;
|
||||
};
|
||||
|
||||
inline
|
||||
A::operator char*() const
|
||||
{ return "hi"; }
|
||||
|
||||
%}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue