Skip to content

Commit 7c5b3c0

Browse files
committed
patch 8.2.2517: Vim9: fix for s390 not tested on other systems
Problem: Vim9: fix for s390 not tested on other systems. Solution: Add a test.
1 parent 4afa774 commit 7c5b3c0

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

src/testdir/test_vim9_script.vim

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,27 @@ def Test_try_catch_fails()
724724
CheckDefFailure(['throw xxx'], 'E1001:')
725725
enddef
726726

727+
def Try_catch_skipped()
728+
var l = []
729+
try
730+
finally
731+
endtry
732+
733+
if 1
734+
else
735+
try
736+
endtry
737+
endif
738+
enddef
739+
740+
" The skipped try/endtry was updating the wrong instruction.
741+
def Test_try_catch_skipped()
742+
var instr = execute('disassemble Try_catch_skipped')
743+
assert_match("NEWLIST size 0\n", instr)
744+
enddef
745+
746+
747+
727748
def Test_throw_vimscript()
728749
# only checks line continuation
729750
var lines =<< trim END

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2517,
753755
/**/
754756
2516,
755757
/**/

0 commit comments

Comments
 (0)