test fix
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6087 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
50bad2ac6c
commit
a17cdcb77d
1 changed files with 6 additions and 1 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
%rename(tochar) A::operator char*() const;
|
||||
%inline %{
|
||||
#include <string.h>
|
||||
struct A
|
||||
{
|
||||
operator char*() const;
|
||||
|
|
@ -9,7 +10,11 @@ operator char*() const;
|
|||
|
||||
inline
|
||||
A::operator char*() const
|
||||
{ return "hi"; }
|
||||
{
|
||||
static char hi[16];
|
||||
strcpy(hi, "hi");
|
||||
return hi;
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue