parent
bc1db0d6f1
commit
c555525227
3 changed files with 33 additions and 10 deletions
13
tests/exception/t13115.nim
Normal file
13
tests/exception/t13115.nim
Normal file
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue