aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/fail_compilation/local_const_exported.elna6
-rw-r--r--testsuite/fail_compilation/local_var_exported.elna6
2 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/fail_compilation/local_const_exported.elna b/testsuite/fail_compilation/local_const_exported.elna
new file mode 100644
index 0000000..c914af5
--- /dev/null
+++ b/testsuite/fail_compilation/local_const_exported.elna
@@ -0,0 +1,6 @@
+proc test_local_export()
+const
+ c* := 42 (* @Error Local symbol 'c' cannot be exported *)
+begin
+end
+end.
diff --git a/testsuite/fail_compilation/local_var_exported.elna b/testsuite/fail_compilation/local_var_exported.elna
new file mode 100644
index 0000000..77b408c
--- /dev/null
+++ b/testsuite/fail_compilation/local_var_exported.elna
@@ -0,0 +1,6 @@
+proc test_local_export()
+var
+ v* : Int (* @Error Local symbol 'v' cannot be exported *)
+begin
+end
+end.