summary refs log tree commit diff stats
path: root/tests/tquit.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tquit.nim')
-rwxr-xr-xtests/tquit.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/tquit.nim b/tests/tquit.nim
new file mode 100755
index 000000000..fedaa58b4
--- /dev/null
+++ b/tests/tquit.nim
@@ -0,0 +1,9 @@
+# Test the new beforeQuit variable: 

+

+import

+  io

+

+proc myExit() {.noconv.} = 

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

+

+addQuitProc(myExit)