0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.4574: Vim9: test for profiling fails

Problem:    Vim9: test for profiling fails.
Solution:   Mark function for profiling earlier to avoid E1271.
This commit is contained in:
Bram Moolenaar
2022-03-15 16:16:47 +00:00
parent 96923b7a14
commit 48f69cdfa4
2 changed files with 6 additions and 4 deletions

View File

@@ -3944,13 +3944,13 @@ def Test_profile_with_lambda()
def Profile()
profile start Xprofile.log
profile func ProfiledWithLambda
ProfiledWithLambda()
# mark ProfiledNested for profiling to avoid E1271
profile func ProfiledNested
ProfiledWithLambda()
ProfiledNested()
# Also profile the nested function. Use a different function, although the
# contents is the same, to make sure it was not already compiled.
# Also profile the nested function. Use a different function, although
# the contents is the same, to make sure it was not already compiled.
profile func *
g:ProfiledNestedProfiled()

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4574,
/**/
4573,
/**/