summary refs log tree commit diff stats
path: root/tests/exception/t13115.nim
blob: 53e078076a2529a087d7009b52ef4744f29474fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
discard """
  exitcode: 1
  targets: "c"
  matrix: "-d:debug; -d:release"
  outputsub: ''' and works fine! [Exception]'''
"""

# bug #13115
# xxx bug: doesn't yet work for cpp

var msg = "This char is `" & '\0' & "` and works fine!"
raise newException(Exception, msg)