Sign in
android
/
platform
/
external
/
swig
/
b145c49375ff8b2847be17d6956c64a6d48a371d
/
.
/
Examples
/
test-suite
/
go
/
li_cmalloc_runme.go
blob: 5b9f9704a028b6fbac6799317e0c0df730392e70 [
file
] [
log
] [
blame
]
package main
import . "li_cmalloc"
func main() {
p := Malloc_int()
Free_int(p)
ok := false
func() {
defer func() {
if recover() != nil {
ok = true
}
}()
p = Calloc_int(-1)
if p == nil {
ok = true
}
Free_int(p)
}()
if !ok {
panic(0)
}
}