summaryrefslogtreecommitdiff
path: root/test/nestedgoto.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/nestedgoto.myr')
-rw-r--r--test/nestedgoto.myr13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/nestedgoto.myr b/test/nestedgoto.myr
new file mode 100644
index 0000000..70f197d
--- /dev/null
+++ b/test/nestedgoto.myr
@@ -0,0 +1,13 @@
+use std
+
+const main = {
+ match 0
+ | 0:
+ goto ok
+ | 1:
+ :ok
+ -> void
+ | _:
+ ;;
+ std.exit(1)
+}