aboutsummaryrefslogtreecommitdiff
path: root/testsuite/fail_compilation
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-07-14 19:42:32 +0200
committerEugen Wissner <belka@caraus.de>2026-07-14 19:42:32 +0200
commit308a2addf655fe45f2098f8542f0ff1290612cd9 (patch)
tree19230bdb673d306d59b32427ad2a3ad5e9850631 /testsuite/fail_compilation
parenta32a61813ebaecf0c1e69fd1481bf09d8c8b1420 (diff)
downloadelna-308a2addf655fe45f2098f8542f0ff1290612cd9.tar.gz
Replace procedure end with return
Diffstat (limited to 'testsuite/fail_compilation')
-rw-r--r--testsuite/fail_compilation/local_const_exported.elna4
-rw-r--r--testsuite/fail_compilation/local_var_exported.elna4
-rw-r--r--testsuite/fail_compilation/module_without_return.elna6
3 files changed, 4 insertions, 10 deletions
diff --git a/testsuite/fail_compilation/local_const_exported.elna b/testsuite/fail_compilation/local_const_exported.elna
index c914af5..1c6c728 100644
--- a/testsuite/fail_compilation/local_const_exported.elna
+++ b/testsuite/fail_compilation/local_const_exported.elna
@@ -1,6 +1,6 @@
proc test_local_export()
const
c* := 42 (* @Error Local symbol 'c' cannot be exported *)
-begin
-end
+return
+
end.
diff --git a/testsuite/fail_compilation/local_var_exported.elna b/testsuite/fail_compilation/local_var_exported.elna
index 77b408c..5323e5e 100644
--- a/testsuite/fail_compilation/local_var_exported.elna
+++ b/testsuite/fail_compilation/local_var_exported.elna
@@ -1,6 +1,6 @@
proc test_local_export()
var
v* : Int (* @Error Local symbol 'v' cannot be exported *)
-begin
-end
+return
+
end.
diff --git a/testsuite/fail_compilation/module_without_return.elna b/testsuite/fail_compilation/module_without_return.elna
deleted file mode 100644
index f2ece07..0000000
--- a/testsuite/fail_compilation/module_without_return.elna
+++ /dev/null
@@ -1,6 +0,0 @@
-var (* @Error Procedure 'module' is expected to return, but does not have a return statement *)
- x: Int
-
-begin
- x := 42
-end.