Mercurial > octave
view test/bug-54490.tst @ 31134:b8d37c022e40
acinclude.m4: use same name for temporary LIBS variable throughout all macros.
* acinclude.m4: Use "ac_octave_save_LIBS" as the name for temporarily holding
LIBS variable.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 09 Jul 2022 11:46:06 -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