summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2020-09-21 18:21:05 +0800
committerGitHub <noreply@github.com>2020-09-21 12:21:05 +0200
commit0a1e4cad7fc6149d168ecaa06bd613b64fc704fb (patch)
treefda9fd8a94628bf3ec2c516a6d8645c7169053fb /tests
parent4d75059e8b16c64a9765da6489af7c3d697c81b5 (diff)
downloadNim-0a1e4cad7fc6149d168ecaa06bd613b64fc704fb.tar.gz
add testcase for #9710 (#15365)
* string is not nil anymore

* tatus
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/t9710.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/t9710.nim b/tests/stdlib/t9710.nim
new file mode 100644
index 000000000..f3ed860df
--- /dev/null
+++ b/tests/stdlib/t9710.nim
@@ -0,0 +1,11 @@
+discard """
+  cmd:      "nim c -r --debugger:native --panics:on $options $file"
+  targets:  "c"
+  nimout:   ""
+  action:   "run"
+  exitcode: 0
+  timeout:  60.0
+"""
+
+for i in 1 || 200:
+  discard i