diff options
Diffstat (limited to 'tests/stdlib/tquit.nim')
-rw-r--r-- | tests/stdlib/tquit.nim | 6 |
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) |