function jit_tst_that_fails () %!testif HAVE_LLVM %! jit_failcnt (0); nr = 1001; mat = [3 1 5]; try for i = 1:nr if (i > 500) result = mat(100); else result = i; endif endfor catch end_try_catch assert (result == 500); %! assert (jit_failcnt, 0); endfunction