summary refs log tree commit diff stats
path: root/tests/ccgbugs/t8967.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/t8967.nim')
-rw-r--r--tests/ccgbugs/t8967.nim14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ccgbugs/t8967.nim b/tests/ccgbugs/t8967.nim
new file mode 100644
index 000000000..0301a2e4f
--- /dev/null
+++ b/tests/ccgbugs/t8967.nim
@@ -0,0 +1,14 @@
+discard """
+  targets: "c cpp"
+"""
+
+import marshal
+
+template main() =
+  let orig: set[char] = {'A'..'Z'}
+  let m = $$orig
+  let old = to[set[char]](m)
+  doAssert orig - old == {}
+
+static: main()
+main()