summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/tests/local_variables.fate4
-rw-r--r--data/tests/local_variables2.fate4
2 files changed, 8 insertions, 0 deletions
diff --git a/data/tests/local_variables.fate b/data/tests/local_variables.fate
index 45cc67b..33d8329 100644
--- a/data/tests/local_variables.fate
+++ b/data/tests/local_variables.fate
@@ -1,5 +1,8 @@
(fate_version 1)
+(require local_variables2.fate)
+
+(assert (= (var other_file_var) 1) FAILED: local from other file)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -107,4 +110,5 @@
)
FAILED: local M
)
+
(end)
diff --git a/data/tests/local_variables2.fate b/data/tests/local_variables2.fate
new file mode 100644
index 0000000..989d3f4
--- /dev/null
+++ b/data/tests/local_variables2.fate
@@ -0,0 +1,4 @@
+(fate_version 1)
+
+(local int other_file_var)
+(set other_file_var 1)