diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-11-28 04:04:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-27 21:04:36 +0100 |
commit | c55552522710ef918e1adfd7a0f90ee0834b277f (patch) | |
tree | 3894458989b0c0b84f2f77bf4be797c444adf492 /tests/exception/t13115.nim | |
parent | bc1db0d6f163e4aba51f27b2a8cefd05476bd5e4 (diff) | |
download | Nim-c55552522710ef918e1adfd7a0f90ee0834b277f.tar.gz |
fix #13115 (#15930)
* fix #13115 * fix testament
Diffstat (limited to 'tests/exception/t13115.nim')
-rw-r--r-- | tests/exception/t13115.nim | 13 |
1 files changed, 13 insertions, 0 deletions
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 |