aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/fail_compilation')
-rw-r--r--testsuite/fail_compilation/noreturn_return.elna6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/noreturn_return.elna b/testsuite/fail_compilation/noreturn_return.elna
new file mode 100644
index 0000000..7ce50aa
--- /dev/null
+++ b/testsuite/fail_compilation/noreturn_return.elna
@@ -0,0 +1,6 @@
+module
+
+proc die() #{noreturn} -> Int (* @Error Attribute 'noreturn' cannot be used with a return type *)
+extern
+
+end.