summary refs log tree commit diff stats
path: root/tests/ccgbugs/t6279.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-08-29 00:33:36 +0200
committerAndreas Rumpf <rumpf_a@web.de>2017-08-29 00:33:46 +0200
commit920f4acadfabb7c426f272f8a57d08276eb1264e (patch)
tree181ea00e2f79ded515f10afc94efa11849da36dd /tests/ccgbugs/t6279.nim
parent57f0936f2a21bde3cc1b3b42673562e14cdffc2e (diff)
downloadNim-920f4acadfabb7c426f272f8a57d08276eb1264e.tar.gz
fixes #6279
Diffstat (limited to 'tests/ccgbugs/t6279.nim')
-rw-r--r--tests/ccgbugs/t6279.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ccgbugs/t6279.nim b/tests/ccgbugs/t6279.nim
new file mode 100644
index 000000000..37345d807
--- /dev/null
+++ b/tests/ccgbugs/t6279.nim
@@ -0,0 +1,9 @@
+discard """
+cmd: "nim c -r -d:fulldebug -d:smokeCycles --gc:refc $file"
+output: '''@[a]'''
+"""
+
+# bug #6279
+var foo = newSeq[tuple[a: seq[string], b: seq[string]]]()
+foo.add((@["a"], @["b"]))
+echo foo[0].a # Crashes on this line