PageRenderTime 6ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/octave/li_cmalloc_runme.m

#
Objective C | 17 lines | 13 code | 4 blank | 0 comment | 2 complexity | 7f5bdc424655bbf4df746f7d5fcf2a6f MD5 | raw file
 1li_cmalloc
 2
 3p = malloc_int();
 4free_int(p);
 5
 6ok = 0;
 7try
 8    p = calloc_int(-1);
 9    free_int(p);
10catch
11    ok = 1;
12end_try_catch
13
14if (ok != 1)
15    error
16endif
17