closes #19585; adds a test case for #21648 (#24310)

closes #19585
follow up #21648

(cherry picked from commit 922f7dfd71)
This commit is contained in:
ringabout
2024-10-15 09:19:46 +08:00
committed by narimiran
parent a04dada93d
commit 274cdba334

13
tests/ccgbugs/t19585.nim Normal file
View File

@@ -0,0 +1,13 @@
discard """
targets: "c cpp"
"""
# bug #19585
type
X* {.exportc.} = object
v: int
{.emit:"""
X x = { 1234 };
""".}