diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-11-29 10:42:50 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-29 10:42:50 -0800 |
commit | 6114df3c24e9c23bfbdbaa204bb100de9d170995 (patch) | |
tree | aaabc7a0e5ecc6ea6ba5572fef469e54f94fb876 /tests/exception | |
parent | d29eddf92a1b8147c4709fd828f77152c1f3aab2 (diff) | |
download | Nim-6114df3c24e9c23bfbdbaa204bb100de9d170995.tar.gz |
testament: error instead of silently overwrite a spec (#16166)
Diffstat (limited to 'tests/exception')
-rw-r--r-- | tests/exception/t13115.nim | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/exception/t13115.nim b/tests/exception/t13115.nim index 9d88bbeda..53e078076 100644 --- a/tests/exception/t13115.nim +++ b/tests/exception/t13115.nim @@ -2,12 +2,11 @@ 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!" +# bug #13115 +# xxx bug: doesn't yet work for cpp -raise newException(Exception, msg) \ No newline at end of file +var msg = "This char is `" & '\0' & "` and works fine!" +raise newException(Exception, msg) |