view test/bug-54490.tst @ 31123:18b8f73595e0

Suppress warning for inline() when used intentionally in core Octave (bug #62682). * fplot.m, __ezplot__.m: Temporarily suppress warning for "Octave:legacy-function" so that intentional use of inline() does not produce a confusing warning.
author Rik <rik@octave.org>
date Tue, 05 Jul 2022 10:38:41 -0700
parents 9080316864bf
children
line wrap: on
line source

%!function out = bug54490 ()
%!  global k;
%!  k = 1;
%!  out = 3;
%!endfunction

%!test <*54490>
%! global k;
%! k = 2;
%! a = [5, 6];
%! a(k) = bug54490 ();
%! assert (a, [5, 3]);
%! k = 2;
%! a = [5, 6];
%! [a(k)] = bug54490 ();
%! assert (a, [5, 3]);
%! clear -global k;  # cleanup after test