summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-02-14 22:40:57 +0100
committerBram Moolenaar <Bram@vim.org>2021-02-14 22:40:57 +0100
commit7c5b3c03699a4ab31f47c24290852d441ea8c12a (patch)
tree5f109e192f320eec35b68ae6dbf56bcff9670392 /src
parent4afa77419fb6e9ed194f8a3cf84dac7cda70deb4 (diff)
downloadvim-git-7c5b3c03699a4ab31f47c24290852d441ea8c12a.tar.gz
patch 8.2.2517: Vim9: fix for s390 not tested on other systemsv8.2.2517
Problem: Vim9: fix for s390 not tested on other systems. Solution: Add a test.
Diffstat (limited to 'src')
-rw-r--r--src/testdir/test_vim9_script.vim21
-rw-r--r--src/version.c2
2 files changed, 23 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_script.vim b/src/testdir/test_vim9_script.vim
index 996c357c5..0becc7d1b 100644
--- a/src/testdir/test_vim9_script.vim
+++ b/src/testdir/test_vim9_script.vim
@@ -724,6 +724,27 @@ def Test_try_catch_fails()
CheckDefFailure(['throw xxx'], 'E1001:')
enddef
+def Try_catch_skipped()
+ var l = []
+ try
+ finally
+ endtry
+
+ if 1
+ else
+ try
+ endtry
+ endif
+enddef
+
+" The skipped try/endtry was updating the wrong instruction.
+def Test_try_catch_skipped()
+ var instr = execute('disassemble Try_catch_skipped')
+ assert_match("NEWLIST size 0\n", instr)
+enddef
+
+
+
def Test_throw_vimscript()
# only checks line continuation
var lines =<< trim END
diff --git a/src/version.c b/src/version.c
index c3b73a58a..60d7d62dc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2517,
+/**/
2516,
/**/
2515,