summary refs log tree commit diff stats
path: root/tests/misc/tinit.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tinit.nim')
-rw-r--r--tests/misc/tinit.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/misc/tinit.nim b/tests/misc/tinit.nim
new file mode 100644
index 000000000..207cb17e8
--- /dev/null
+++ b/tests/misc/tinit.nim
@@ -0,0 +1,9 @@
+discard """
+  output: "Hello from module! Hello from main module!"
+"""
+# Test the new init section in modules
+
+import minit
+
+write(stdout, "Hello from main module!\n")
+#OUT Hello from module! Hello from main module!