summary refs log tree commit diff stats
path: root/tests/reject/tblock1.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reject/tblock1.nim')
-rw-r--r--tests/reject/tblock1.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/reject/tblock1.nim b/tests/reject/tblock1.nim
new file mode 100644
index 000000000..0bea7ae7f
--- /dev/null
+++ b/tests/reject/tblock1.nim
@@ -0,0 +1,11 @@
+# check for forward label and

+# for failure when label is not declared

+

+proc main =

+  block endLess:

+    write(stdout, "Muaahh!\N")

+    break endLess

+

+  break ha #ERROR

+

+main()