summary refs log tree commit diff stats
path: root/tests/arc/t14472.nim
diff options
context:
space:
mode:
authorcooldome <ariabushenko@gmail.com>2020-10-12 10:12:32 +0100
committerGitHub <noreply@github.com>2020-10-12 10:12:32 +0100
commit9668a1106de6ccd86b377d2a2c566d8efb11479b (patch)
treeb3dd1f2ad2def87c2a3be9d55a56c6032ac5c143 /tests/arc/t14472.nim
parentd66e274e1ac8e86266151ad0c48f7705b3bd1582 (diff)
downloadNim-9668a1106de6ccd86b377d2a2c566d8efb11479b.tar.gz
Fix 15543 (#15544)
* fix #15543

* fix spacing

* fix test

* simplify test for freebsd platform
Diffstat (limited to 'tests/arc/t14472.nim')
-rw-r--r--tests/arc/t14472.nim22
1 files changed, 21 insertions, 1 deletions
diff --git a/tests/arc/t14472.nim b/tests/arc/t14472.nim
index 47ed77f4c..4ef661161 100644
--- a/tests/arc/t14472.nim
+++ b/tests/arc/t14472.nim
@@ -1,6 +1,6 @@
 discard """
   valgrind: true
-  cmd: "nim c --gc:arc -d:useMalloc $file"
+  cmd: "nim cpp --gc:arc -d:useMalloc --deepcopy:on $file"
 """
 
 type
@@ -21,3 +21,23 @@ proc bork() : ImportedScene =
   add(result.meshes, Mesh(material: mats[0]))
 
 var s = bork()
+
+
+#------------------------------------------------------------------------
+# issue #15543
+
+import tables
+
+type
+  cdbl {.importc: "double".} = object
+
+  MyObject = ref object of RootObj
+    y: Table[string, cdbl]
+        
+
+proc test =
+  var x = new(MyObject)
+
+test()
+
+