summary refs log tree commit diff stats
path: root/tests/stdlib/tos_unc.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tos_unc.nim')
-rw-r--r--tests/stdlib/tos_unc.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/tos_unc.nim b/tests/stdlib/tos_unc.nim
new file mode 100644
index 000000000..194deeb42
--- /dev/null
+++ b/tests/stdlib/tos_unc.nim
@@ -0,0 +1,11 @@
+discard """
+  matrix: "--mm:refc; --mm:orc"
+  disabled: "posix"
+"""
+
+# bug 10952, UNC paths
+import os
+import std/assertions
+
+doAssert r"\\hostname\foo\bar" / "baz" == r"\\hostname\foo\bar\baz"
+doAssert r"\\?\C:\foo" / "bar" == r"\\?\C:\foo\bar"