/trunk/Examples/test-suite/octave/li_cmalloc_runme.m
MATLAB | 17 lines | 13 code | 4 blank | 0 comment | 2 complexity | 7f5bdc424655bbf4df746f7d5fcf2a6f MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- 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