ref: c62d3368c31deeb95c7638f6487ccbdbbb536afa
parent: e01e8d1bd5f6412dedd7370b7e2ce1d55f7b7eee
author: Ori Bernstein <[email protected]>
date: Thu May 30 07:01:13 EDT 2013
Add test for properly scoped labels.
--- /dev/null
+++ b/test/local-labels.myr
@@ -1,0 +1,15 @@
+use std
+
+const main = {
+ goto foo
+ -> 123
+:foo
+ -> bar()
+}
+
+const bar = {
+ goto foo
+ -> 42
+:foo
+ -> 10
+}
--- a/test/tests
+++ b/test/tests
@@ -82,6 +82,7 @@
B encodechar P 1世界äa
B exportcycle E 0
B import-type E 0
+B local-labels E 10
F declmismatch
F infermismatch
# F usedef ## BUGGERED