Mercurial > octave
view test/bug-54490.tst @ 31232:adfbd487d0f6 stable
GitHub-CI (CodeQL): Update to CodeQL action version v2.
* .github/workflows/codeql-analysis.yaml: CodeQL action version v1 is
deprecated. Update to CodeQL action version v2.
See: https://github.blog/changelog/2022-04-27-code-scanning-deprecation-of-codeql-action-v1/
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 19 Sep 2022 13:13:31 +0200 |
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