testament: error instead of silently overwrite a spec (#16166)
This commit is contained in:
parent
d29eddf92a
commit
6114df3c24
5 changed files with 51 additions and 27 deletions
|
|
@ -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)
|
||||
var msg = "This char is `" & '\0' & "` and works fine!"
|
||||
raise newException(Exception, msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue