aboutsummaryrefslogtreecommitdiff
path: root/testes/goto.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/goto.lua')
-rw-r--r--testes/goto.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/testes/goto.lua b/testes/goto.lua
index 238bc04a..85038d02 100644
--- a/testes/goto.lua
+++ b/testes/goto.lua
@@ -14,6 +14,7 @@ errmsg([[ do ::l1:: end goto l1; ]], "label 'l1'")
14 14
15-- repeated label 15-- repeated label
16errmsg([[ ::l1:: ::l1:: ]], "label 'l1'") 16errmsg([[ ::l1:: ::l1:: ]], "label 'l1'")
17errmsg([[ ::l1:: do ::l1:: end]], "label 'l1'")
17 18
18 19
19-- undefined label 20-- undefined label
@@ -67,8 +68,6 @@ do
67 assert(assert(load(prog))() == 31) 68 assert(assert(load(prog))() == 31)
68end 69end
69 70
70-- goto to correct label when nested
71do goto l3; ::l3:: end -- does not loop jumping to previous label 'l3'
72 71
73-- ok to jump over local dec. to end of block 72-- ok to jump over local dec. to end of block
74do 73do