forked from aniani/vim
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.
This commit is contained in:
@@ -724,6 +724,27 @@ def Test_try_catch_fails()
|
|||||||
CheckDefFailure(['throw xxx'], 'E1001:')
|
CheckDefFailure(['throw xxx'], 'E1001:')
|
||||||
enddef
|
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()
|
def Test_throw_vimscript()
|
||||||
# only checks line continuation
|
# only checks line continuation
|
||||||
var lines =<< trim END
|
var lines =<< trim END
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2517,
|
||||||
/**/
|
/**/
|
||||||
2516,
|
2516,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user