summary refs log tree commit diff stats
path: root/tests/ccgbugs/tmissingderef.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/tmissingderef.nim')
-rw-r--r--tests/ccgbugs/tmissingderef.nim13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/ccgbugs/tmissingderef.nim b/tests/ccgbugs/tmissingderef.nim
index edff1dd4e..26418800a 100644
--- a/tests/ccgbugs/tmissingderef.nim
+++ b/tests/ccgbugs/tmissingderef.nim
@@ -1,5 +1,7 @@
 discard """
-  output: '''255
+  output: '''[10, 0, 0, 0, 0, 0, 0, 0]
+
+255
 1 1
 0.5'''
 """
@@ -27,4 +29,13 @@ proc mainowar =
   var b = p[]
   echo b[0]
 
+
+# bug 2963
+var
+  a = [8, 7, 3, 10, 0, 0, 0, 1]
+  b = [10, 0, 0, 0, 0, 0, 0, 0]
+  ap = addr a
+ap[] = b
+echo repr(a)
+
 mainowar()