fix char* typemap in bug #1080514

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6856 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-11 08:30:40 +00:00
commit 66c195b89d
4 changed files with 27 additions and 8 deletions

View file

@ -344,3 +344,12 @@ f2 = fptr_ref(f)
if f1._a != f2._a:
raise RuntimeError, "bad const ptr& typemap"
v = char_foo(1,3)
if v !=3:
raise RuntimeError, "bad int typemap"
s = char_foo(1,"hello")
if s !="hello":
raise RuntimeError, "bad char* typemap"