summary refs log tree commit diff stats
path: root/tests/js/tunittest_error2.nim
blob: 9c5af75291eae596cfdfbff9f8909109041c6333 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
discard """
  exitcode: 1
  outputsub: '''
[<foreign exception>]
[FAILED] Bad test
  '''
  matrix: "-d:nodejs"
  targets: "js"
  joinable: false
"""

# bug #16978
import unittest
test "Bad test":
  var x: cstring = nil
  let y = x[0]