summary refs log tree commit diff stats
path: root/tests/stdlib/tquit.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tquit.nim')
-rw-r--r--tests/stdlib/tquit.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/stdlib/tquit.nim b/tests/stdlib/tquit.nim
new file mode 100644
index 000000000..d4dc1522d
--- /dev/null
+++ b/tests/stdlib/tquit.nim
@@ -0,0 +1,6 @@
+# Test the new beforeQuit variable: 

+

+proc myExit() {.noconv.} = 

+  write(stdout, "just exiting...\n")

+

+addQuitProc(myExit)