From fa338768a3f6aac03e4c76bcfdd660716a9bf926 Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 3 Sep 2018 08:37:32 +0200 Subject: fixes #8847 --- tests/system/tostring.nim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/system') diff --git a/tests/system/tostring.nim b/tests/system/tostring.nim index 42c07c0a4..04b37f133 100644 --- a/tests/system/tostring.nim +++ b/tests/system/tostring.nim @@ -106,4 +106,12 @@ var nilstring: string bar(nilstring) static: - stringCompare() \ No newline at end of file + stringCompare() + +# bug 8847 +var a2: cstring = "fo\"o2" + +block: + var s: string + s.addQuoted a2 + doAssert s == "\"fo\\\"o2\"" -- cgit 1.4.1-2-gfad0