summaryrefslogtreecommitdiff
path: root/test/diagnostics/empty-block.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/empty-block.lua')
-rw-r--r--test/diagnostics/empty-block.lua32
1 files changed, 32 insertions, 0 deletions
diff --git a/test/diagnostics/empty-block.lua b/test/diagnostics/empty-block.lua
new file mode 100644
index 00000000..750397a4
--- /dev/null
+++ b/test/diagnostics/empty-block.lua
@@ -0,0 +1,32 @@
+TEST [[
+<!if true then
+end!>
+]]
+
+TEST [[
+<!if true then
+else
+end!>
+]]
+
+TEST [[
+if true then
+else
+ return
+end
+]]
+
+TEST [[
+while true do
+end
+]]
+
+TEST [[
+<!for _ = 1, 10 do
+end!>
+]]
+
+TEST [[
+<!for _ in pairs({}) do
+end!>
+]]