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