0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1557: test failures for unreachable code

Problem:    Test failures for unreachable code.
Solution:   Add a test override to ignore unreachable code.
This commit is contained in:
Bram Moolenaar
2023-05-14 21:38:12 +01:00
parent cf2610c82b
commit 9d383f30bb
7 changed files with 31 additions and 9 deletions

View File

@@ -3493,7 +3493,8 @@ compile_def_function(
&& ea.cmdidx != CMD_endwhile
&& ea.cmdidx != CMD_catch
&& ea.cmdidx != CMD_finally
&& ea.cmdidx != CMD_endtry)
&& ea.cmdidx != CMD_endtry
&& !ignore_unreachable_code_for_testing)
{
emsg(_(e_unreachable_code_after_return));
goto erret;