Added test case

Previously offending code
This commit is contained in:
mjendrusch
2016-04-17 17:11:02 +02:00
parent 174205bcae
commit 01ca3ba26d

View File

@@ -0,0 +1,9 @@
type
Map {.importcpp: "std::map", header: "<map>".} [T,U] = object
proc cInitMap(T: typedesc, U: typedesc): Map[T,U] {.importcpp: "std::map<'*1,'*2>()", nodecl.}
proc initMap[T, U](): Map[T, U] =
result = cInitMap(T, U)
var x: Map[cstring, cint] = initMap[cstring, cint]()