summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorOscar NihlgÄrd <oscarnihlgard@gmail.com>2019-10-24 11:04:04 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-10-24 11:04:04 +0200
commit9ccfcf5dd2572c858913cf092a6a571a5e4a8df0 (patch)
tree43c76d728596a0f8f847a3fe6be0140562cfd6e9 /tests
parent822078ed12a48aa61eda0c65bc9ee675836a9fd3 (diff)
downloadNim-9ccfcf5dd2572c858913cf092a6a571a5e4a8df0.tar.gz
Fix compiler crash caused by top level return (#12501)
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/t12480.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/misc/t12480.nim b/tests/misc/t12480.nim
new file mode 100644
index 000000000..992533ef6
--- /dev/null
+++ b/tests/misc/t12480.nim
@@ -0,0 +1,5 @@
+discard """
+  errormsg: "'return' not allowed here"
+"""
+
+return
\ No newline at end of file