From c55552522710ef918e1adfd7a0f90ee0834b277f Mon Sep 17 00:00:00 2001 From: flywind <43030857+xflywind@users.noreply.github.com> Date: Sat, 28 Nov 2020 04:04:36 +0800 Subject: fix #13115 (#15930) * fix #13115 * fix testament --- tests/exception/t13115.nim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/exception/t13115.nim (limited to 'tests/exception/t13115.nim') diff --git a/tests/exception/t13115.nim b/tests/exception/t13115.nim new file mode 100644 index 000000000..9d88bbeda --- /dev/null +++ b/tests/exception/t13115.nim @@ -0,0 +1,13 @@ +discard """ + exitcode: 1 + targets: "c" + matrix: "-d:debug; -d:release" + outputsub: '''t13115.nim(13) t13115 +Error: unhandled exception: This char is''' + outputsub: ''' and works fine! [Exception]''' +""" + +const b_null: char = 0.char +var msg = "This char is `" & $b_null & "` and works fine!" + +raise newException(Exception, msg) \ No newline at end of file -- cgit 1.4.1-2-gfad0