* fix #15543

* fix spacing

* fix test

* simplify test for freebsd platform
This commit is contained in:
cooldome 2020-10-12 10:12:32 +01:00 • committed by GitHub
commit 9668a1106d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 2 deletions

View file

@ -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()