Sign in
fuchsia
/
third_party
/
swig
/
decfe5dd8181d962e8b05ea531650d8589dc2b30
/
.
/
trunk
/
Examples
/
test-suite
/
python
/
li_cmalloc_runme.py
blob: 9e698aee2cfc4f6d38e4addf063fa4a72f45775e [
file
] [
log
] [
blame
]
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