summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-29 16:22:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-29 16:22:02 +0800
commitf78d4944b4d811956b6b1493b8a022f633babfdd (patch)
tree4aef213c2d95fee825d6dede008099174df27c9f /test
parent2b9fe7484f0d3f1bf4a287ac5d563896b713efa7 (diff)
downloadlua-language-server-f78d4944b4d811956b6b1493b8a022f633babfdd.zip
fix #1406
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 9d337e53..e10ac52c 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -2053,3 +2053,17 @@ function m.ff(x) end
m.ff(1)
]]
+
+TEST [[
+local done = false
+
+local function set_done()
+ done = true
+end
+
+while not done do
+ set_done()
+end
+
+print(1)
+]]