summary refs log tree commit diff stats
path: root/tests/ccgbugs/thtiobj.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ccgbugs/thtiobj.nim')
-rw-r--r--tests/ccgbugs/thtiobj.nim9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ccgbugs/thtiobj.nim b/tests/ccgbugs/thtiobj.nim
new file mode 100644
index 000000000..6db24dad0
--- /dev/null
+++ b/tests/ccgbugs/thtiobj.nim
@@ -0,0 +1,9 @@
+discard """
+  matrix: "--mm:refc"
+  targets: "c cpp"
+"""
+
+import typeinfo
+
+var x = ""
+discard (getPointer(toAny(x)))