comparison src/testdir/test_vim9_expr.vim @ 19217:1235c26d9f04 v8.2.0167

patch 8.2.0167: Coverity warning for ignoring return value Commit: https://github.com/vim/vim/commit/58ceca5cae75ed839b20a89c5fa9998f02552f58 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 28 22:46:22 2020 +0100 patch 8.2.0167: Coverity warning for ignoring return value Problem: Coverity warning for ignoring return value. Solution: Check the return value and jump if failed.
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Jan 2020 23:00:03 +0100
parents 94eda51ba9ba
children 89931701e033
comparison
equal deleted inserted replaced
19216:ee5cec77b9f0 19217:1235c26d9f04
685 call CheckDefFailure("let x = -'xx'", "E1030:") 685 call CheckDefFailure("let x = -'xx'", "E1030:")
686 call CheckDefFailure("let x = +'xx'", "E1030:") 686 call CheckDefFailure("let x = +'xx'", "E1030:")
687 687
688 call CheckDefFailure("let x = @", "E1002:") 688 call CheckDefFailure("let x = @", "E1002:")
689 call CheckDefFailure("let x = @<", "E354:") 689 call CheckDefFailure("let x = @<", "E354:")
690
691 call CheckDefFailure("let x = &notexist", "E113:")
690 endfunc 692 endfunc
691 693
692 let g:Funcrefs = [function('add')] 694 let g:Funcrefs = [function('add')]
693 695
694 func CallMe(arg) 696 func CallMe(arg)