diff --git a/tests/ccgbugs/t19585.nim b/tests/ccgbugs/t19585.nim new file mode 100644 index 0000000000..2a23738ec6 --- /dev/null +++ b/tests/ccgbugs/t19585.nim @@ -0,0 +1,13 @@ +discard """ + targets: "c cpp" +""" + +# bug #19585 + +type + X* {.exportc.} = object + v: int + +{.emit:""" +X x = { 1234 }; +""".} \ No newline at end of file