summary refs log tree commit diff stats
path: root/tests/stdlib/tquit.nim
blob: 1f9283ec4147dcaf50e5e4c686d255b53d22a385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
output: '''
just exiting...
'''
joinable: false
"""

# Test the new beforeQuit variable:

proc myExit() {.noconv.} =
  write(stdout, "just exiting...\n")

addQuitProc(myExit)