summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-09-14 22:28:12 +0200
committerGitHub <noreply@github.com>2018-09-14 22:28:12 +0200
commit0c04b80651ff591beadb873c8814168e66e6b722 (patch)
treeadd75ce87964ac299f102b9ff1ccfe8400c93fea /tests
parent9995f50050298dc435a237b29dd0ff258ba25b9b (diff)
parent839953c3e167828f93bdddd27ae88c5909c8aca9 (diff)
downloadNim-0c04b80651ff591beadb873c8814168e66e6b722.tar.gz
Merge pull request #8966 from LemonBoy/fix-8964
Fix hashing for codegenProc (sic) types
Diffstat (limited to 'tests')
-rw-r--r--tests/ccgbugs/t8964.nim10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ccgbugs/t8964.nim b/tests/ccgbugs/t8964.nim
new file mode 100644
index 000000000..5b41e8bdb
--- /dev/null
+++ b/tests/ccgbugs/t8964.nim
@@ -0,0 +1,10 @@
+discard """
+  targets: "c cpp"
+"""
+
+from json import JsonParsingError
+import marshal
+
+const nothing = ""
+doAssertRaises(JsonParsingError):
+  var bar = marshal.to[int](nothing)