From 922f7dfd712130bb68a16336085c0320afceb273 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Tue, 15 Oct 2024 09:19:46 +0800 Subject: [PATCH] closes #19585; adds a test case for #21648 (#24310) closes #19585 follow up #21648 --- tests/ccgbugs/t19585.nim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/ccgbugs/t19585.nim 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