add more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5af71f22b3
commit
98d98784ae
6 changed files with 136 additions and 56 deletions
14
SWIG/Examples/test-suite/python/li_cmalloc_runme.py
Normal file
14
SWIG/Examples/test-suite/python/li_cmalloc_runme.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from li_cmalloc import *
|
||||
|
||||
p = malloc_int()
|
||||
free_int(p)
|
||||
|
||||
ok = 0
|
||||
try:
|
||||
p = calloc_int(-1)
|
||||
free_int(p)
|
||||
except:
|
||||
ok = 1
|
||||
|
||||
if ok != 1:
|
||||
raise RuntimeError
|
||||
Loading…
Add table
Add a link
Reference in a new issue