diff options
Diffstat (limited to 'tests/tquit.nim')
-rwxr-xr-x | tests/tquit.nim | 9 |
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) |