aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-03-05 12:10:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2021-03-05 12:10:34 -0300
commitf5df7f91f70234850484d26caf24e71e001e5304 (patch)
treefe0d12b5b8157b0ad34fc26dd65afa6ff8bb9c56 /testes
parente7803f7dbcdc966ab1f9db143424ee811ab1a398 (diff)
downloadlua-f5df7f91f70234850484d26caf24e71e001e5304.tar.gz
lua-f5df7f91f70234850484d26caf24e71e001e5304.tar.bz2
lua-f5df7f91f70234850484d26caf24e71e001e5304.zip
Wrong assertion in 'getbaseline'
The assertion cannot compute 'f->abslineinfo[i]' when the initial estimate 'i' is -1.
Diffstat (limited to 'testes')
-rw-r--r--testes/errors.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/testes/errors.lua b/testes/errors.lua
index fd02806e..a3d0676b 100644
--- a/testes/errors.lua
+++ b/testes/errors.lua
@@ -420,6 +420,14 @@ if not b then
420 end 420 end
421end]], 5) 421end]], 5)
422 422
423do
424 -- Force a negative estimate for base line. Error in instruction 2
425 -- (after VARARGPREP, GETGLOBAL), with first absolute line information
426 -- (forced by too many lines) in instruction 0.
427 local s = string.format("%s return __A.x", string.rep("\n", 300))
428 lineerror(s, 301)
429end
430
423 431
424if not _soft then 432if not _soft then
425 -- several tests that exaust the Lua stack 433 -- several tests that exaust the Lua stack