summaryrefslogtreecommitdiff
path: root/src/testdir/test_expr.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-21 14:36:15 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-21 14:36:15 +0200
commit843b884461de1c79a1d2748549776fb13fc94360 (patch)
tree6c51e94545370536734e3033f67b19e5c23cbb49 /src/testdir/test_expr.vim
parente07e797db0c5ef1aafc650d8bb0d39fb052cf1e1 (diff)
downloadvim-git-843b884461de1c79a1d2748549776fb13fc94360.tar.gz
patch 7.4.2233v7.4.2233
Problem: Crash when using funcref() with invalid name. (Dominique Pelle) Solution: Check for NULL translated name.
Diffstat (limited to 'src/testdir/test_expr.vim')
-rw-r--r--src/testdir/test_expr.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_expr.vim b/src/testdir/test_expr.vim
index a7ad65eef..76811255a 100644
--- a/src/testdir/test_expr.vim
+++ b/src/testdir/test_expr.vim
@@ -237,6 +237,7 @@ func Test_funcref()
call assert_equal(1, OneByRef())
let OneByRef = funcref('One')
call assert_equal(2, OneByRef())
+ call assert_fails('echo funcref("{")', 'E475:')
endfunc
func Test_setmatches()