diff options
Diffstat (limited to 'trunk/Examples/test-suite/octave/li_cmalloc_runme.m')
-rw-r--r-- | trunk/Examples/test-suite/octave/li_cmalloc_runme.m | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/octave/li_cmalloc_runme.m b/trunk/Examples/test-suite/octave/li_cmalloc_runme.m new file mode 100644 index 000000000..45faf7381 --- /dev/null +++ b/trunk/Examples/test-suite/octave/li_cmalloc_runme.m @@ -0,0 +1,17 @@ +li_cmalloc + +p = malloc_int(); +free_int(p); + +ok = 0; +try + p = calloc_int(-1); + free_int(p); +catch + ok = 1; +end_try_catch + +if (ok != 1) + error +endif + |