summary refs log tree commit diff stats
path: root/tests/modules
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-10-31 21:13:02 +0100
committerAraq <rumpf_a@web.de>2014-10-31 21:13:02 +0100
commit590461d88a5cff9679b2dcb421990b9a32a94529 (patch)
tree9ccd958203b7f36fda01daea8f6c64ae55bc5d3c /tests/modules
parent860a28802e1ee86c5b512d4ad0aacf419c17ed4f (diff)
downloadNim-590461d88a5cff9679b2dcb421990b9a32a94529.tar.gz
updated the test
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/mexport2a.nim5
-rw-r--r--tests/modules/mexport2b.nim1
-rw-r--r--tests/modules/texport2.nim10
3 files changed, 16 insertions, 0 deletions
diff --git a/tests/modules/mexport2a.nim b/tests/modules/mexport2a.nim
new file mode 100644
index 000000000..deaef8fa4
--- /dev/null
+++ b/tests/modules/mexport2a.nim
@@ -0,0 +1,5 @@
+
+import mexport2b
+export mexport2b
+proc printAbc*() = echo "abc"
+
diff --git a/tests/modules/mexport2b.nim b/tests/modules/mexport2b.nim
new file mode 100644
index 000000000..8ea6085de
--- /dev/null
+++ b/tests/modules/mexport2b.nim
@@ -0,0 +1 @@
+proc printXyz*() = echo "xyz"
diff --git a/tests/modules/texport2.nim b/tests/modules/texport2.nim
new file mode 100644
index 000000000..0826eec9d
--- /dev/null
+++ b/tests/modules/texport2.nim
@@ -0,0 +1,10 @@
+# bug #1595
+
+import mexport2a
+
+proc main() =
+  echo "Import Test, two lines should follow. One with abc and one with xyz."
+  printAbc()
+  printXyz()
+
+main()