summary refs log tree commit diff stats
path: root/tests/vm
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-01-19 13:26:15 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-01-19 13:26:22 +0100
commitb85898cd416c6ccdfbfea0eb3d0b2d2c03552f3d (patch)
tree4411bed5a22c10a059739a9e76badcbaaeb63bc7 /tests/vm
parent4ec0f9305e99cfc3193bca2b0ca6b2df69bd173d (diff)
downloadNim-b85898cd416c6ccdfbfea0eb3d0b2d2c03552f3d.tar.gz
fixes #5237
Diffstat (limited to 'tests/vm')
-rw-r--r--tests/vm/textensionmap.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/vm/textensionmap.nim b/tests/vm/textensionmap.nim
new file mode 100644
index 000000000..5d4b25d01
--- /dev/null
+++ b/tests/vm/textensionmap.nim
@@ -0,0 +1,13 @@
+
+# bug #5237
+
+import tables
+import sets
+import sequtils
+
+
+const EXTENSIONMAP = {
+  "c": @["*.c", "*.h"],
+}.toTable()
+
+const EXTENSIONS = toSet(concat(toSeq(EXTENSIONMAP.values())))