summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 53c7b975..5e0d6579 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1529,3 +1529,16 @@ local z = x and y
print(z.y)
]]
+
+TEST [[
+local x, y
+function x()
+ y()
+end
+
+function y()
+ x()
+end
+
+x()
+]]