diff --git a/tests/ccgbugs/t8964.nim b/tests/ccgbugs/t8964.nim deleted file mode 100644 index 5b41e8bdb..000000000 --- a/tests/ccgbugs/t8964.nim +++ /dev/null @@ -1,10 +0,0 @@ -discard """ - targets: "c cpp" -""" - -from json import JsonParsingError -import marshal - -const nothing = "" -doAssertRaises(JsonParsingError): - var bar = marshal.to[int](nothing) diff --git a/tests/cpp/t8241.nim b/tests/cpp/t8241.nim index cbee1d85a..9aed13fcb 100644 --- a/tests/cpp/t8241.nim +++ b/tests/cpp/t8241.nim @@ -20,4 +20,13 @@ proc findlib2: string = proc imported_func2*(a: cint): cstring {.importc, dynlib: findlib2().} echo imported_func(1) -echo imported_func2(1) \ No newline at end of file +echo imported_func2(1) + +# issue #8946 + +from json import JsonParsingError +import marshal + +const nothing = "" +doAssertRaises(JsonParsingError): + var bar = marshal.to[int](nothing)