git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7686 626c5289-ae23-0410-ae9c-e8d60b6d4f22
14 lines
162 B
Python
14 lines
162 B
Python
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
|