view test/bug-38565.tst @ 19649:4c1f638a381e gui-release

avoid old-style cast warning in libgui * graphics/Backend.cc: Replace C-style cast with reinterpret_cast.
author John W. Eaton <jwe@octave.org>
date Fri, 23 Jan 2015 14:37:43 -0500
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");