aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/compilable/pointer_cast.elna4
-rw-r--r--testsuite/fail_compilation/module_without_return.elna6
2 files changed, 9 insertions, 1 deletions
diff --git a/testsuite/compilable/pointer_cast.elna b/testsuite/compilable/pointer_cast.elna
index d10fb23..64b99ca 100644
--- a/testsuite/compilable/pointer_cast.elna
+++ b/testsuite/compilable/pointer_cast.elna
@@ -4,5 +4,7 @@ var
begin
p := c;
- c := p
+ c := p;
+
+ return 0
end.
diff --git a/testsuite/fail_compilation/module_without_return.elna b/testsuite/fail_compilation/module_without_return.elna
new file mode 100644
index 0000000..f2ece07
--- /dev/null
+++ b/testsuite/fail_compilation/module_without_return.elna
@@ -0,0 +1,6 @@
+var (* @Error Procedure 'module' is expected to return, but does not have a return statement *)
+ x: Int
+
+begin
+ x := 42
+end.