summary refs log tree commit diff stats
path: root/tests/ccgbugs/xarray9578.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/xarray9578.nim')
-rw-r--r--tests/ccgbugs/xarray9578.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ccgbugs/xarray9578.nim b/tests/ccgbugs/xarray9578.nim
new file mode 100644
index 000000000..849f16821
--- /dev/null
+++ b/tests/ccgbugs/xarray9578.nim
@@ -0,0 +1,7 @@
+import t9578
+
+proc testArray*(x: var array[3,mytype]) =
+  f(x[0].addr)
+
+proc testArray2*(x: var ptr array[3,mytype]) =
+  f(x[0].addr)