PageRenderTime 44ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. li_cmalloc
  2. p = malloc_int();
  3. free_int(p);
  4. ok = 0;
  5. try
  6. p = calloc_int(-1);
  7. free_int(p);
  8. catch
  9. ok = 1;
  10. end_try_catch
  11. if (ok != 1)
  12. error
  13. endif