mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-27 07:18:15 +00:00
* make more standard libraries work with `nimPreviewSlimSystem` * typo * part two * Delete specutils.nim * fixes more tests * more fixes * fixes tests * fixes three more tests * add formatfloat import * fix * last
18 lines
267 B
Nim
18 lines
267 B
Nim
discard """
|
|
output: '''
|
|
just exiting...
|
|
'''
|
|
joinable: false
|
|
"""
|
|
|
|
# Test `addQuitProc` (now deprecated by `addExitProc`)
|
|
|
|
import std/syncio
|
|
|
|
proc myExit() {.noconv.} =
|
|
write(stdout, "just exiting...\n")
|
|
|
|
{.push warning[deprecated]: off.}
|
|
addQuitProc(myExit)
|
|
{.pop.}
|