diff options
Diffstat (limited to 'testsuite')
| -rw-r--r-- | testsuite/compilable/noreturn_procedure.elna | 6 | ||||
| -rw-r--r-- | testsuite/fail_compilation/noreturn_return.elna | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/compilable/noreturn_procedure.elna b/testsuite/compilable/noreturn_procedure.elna new file mode 100644 index 0000000..3604f0f --- /dev/null +++ b/testsuite/compilable/noreturn_procedure.elna @@ -0,0 +1,6 @@ +module + +proc exit() #{noreturn} +return + +end. 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. |
