view test/bug-54490.tst @ 31136:cbfe8318566a

maint: use "s_" prefix for integer "hdf5_save_type" class variable. * ov-int16.cc, ov-int32.cc, ov-int64.cc, ov-int8.cc, ov-intx.h, ov-uint16.cc, ov-uint32.cc, ov-uint64.cc, ov-uint8.cc: Use "s_" prefix for integer "hdf5_save_type" class variable.
author Rik <rik@octave.org>
date Sat, 09 Jul 2022 14:37:57 -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