diff options
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/twronguidtype.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stdlib/twronguidtype.nim b/tests/stdlib/twronguidtype.nim new file mode 100644 index 000000000..25f834d8a --- /dev/null +++ b/tests/stdlib/twronguidtype.nim @@ -0,0 +1,8 @@ +# issue #24076 + +when defined(macosx) or defined(freebsd) or defined(openbsd) or defined(netbsd): + import std/posix + proc uid(x: uint32): Uid = Uid(x) + var y: uint32 + let myUid = geteuid() + discard myUid == uid(y) |