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:
Marcelo Matus 2005-10-19 10:56:37 +00:00
commit 98d98784ae
6 changed files with 136 additions and 56 deletions

View 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