view test/bug-38565.tst @ 18565:3f2a95a4b98d draft lyh-review

jit compiler: use existing int functions
author Stefan Mahr <dac922@gmx.de>
date Sun, 24 Nov 2013 22:46:32 +0100
parents b9e510a1f308
children
line wrap: on
line source

%!function r = f (x)
%!  if (ischar (x))
%!    r = x;
%!  else
%!    error ("expecting character string");
%!  endif
%!endfunction

%!assert (eval ("f 10;"), "10");