mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
* fix upstream changes * Update tests/js/tunittest_error2.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
17 lines
234 B
Nim
17 lines
234 B
Nim
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]
|