Fix memmove regression
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11688 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2726424a7f
commit
a2229a45fc
5 changed files with 19 additions and 4 deletions
10
Examples/test-suite/python/li_cdata_runme.py
Normal file
10
Examples/test-suite/python/li_cdata_runme.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
from li_cdata import *
|
||||
|
||||
s = "ABC abc"
|
||||
m = malloc(256)
|
||||
memmove(m, s)
|
||||
ss = cdata(m, 7)
|
||||
if ss != "ABC abc":
|
||||
raise "failed"
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue