function y = myfunc ()
  y = subfunc ();
endfunction

function y = subfunc ()
  warning ("off", "Octave:divide-by-zero", "local");
  y = true;
endfunction

%!assert (true)
%!assert (myfunc)
