summaryrefslogtreecommitdiff
path: root/test/diagnostics/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/common.lua')
-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)
+]]