diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/toserrors.nim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/stdlib/toserrors.nim b/tests/stdlib/toserrors.nim new file mode 100644 index 000000000..e907dfe63 --- /dev/null +++ b/tests/stdlib/toserrors.nim @@ -0,0 +1,9 @@ +discard """ + action: compile +""" + +import std/oserrors + +let x1 = osLastError() +raiseOSError(x1) +echo osErrorMsg(x1) |