diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/converter/tor_in_converter.nim | 2 | ||||
-rw-r--r-- | tests/stdlib/texitprocs.nim | 21 |
2 files changed, 22 insertions, 1 deletions
diff --git a/tests/converter/tor_in_converter.nim b/tests/converter/tor_in_converter.nim index 5674526a1..df2334647 100644 --- a/tests/converter/tor_in_converter.nim +++ b/tests/converter/tor_in_converter.nim @@ -4,7 +4,7 @@ test''' """ # bug #4537 -# nim js --d:nodejs +# nim js -d:nodejs type Str = distinct string diff --git a/tests/stdlib/texitprocs.nim b/tests/stdlib/texitprocs.nim new file mode 100644 index 000000000..9d5378fe8 --- /dev/null +++ b/tests/stdlib/texitprocs.nim @@ -0,0 +1,21 @@ +discard """ +targets: "c cpp js" +output: ''' +ok4 +ok3 +ok2 +ok1 +''' +""" + +import std/exitprocs + +proc fun1() {.noconv.} = echo "ok1" +proc fun2() = echo "ok2" +proc fun3() {.noconv.} = echo "ok3" +proc fun4() = echo "ok4" + +addExitProc(fun1) +addExitProc(fun2) +addExitProc(fun3) +addExitProc(fun4) |