Files
Nim/tests/ccgbugs/t19445.nim
flywind 2c01c9c4c8 output byref types into --header file [backport: 1.6] (#19505)
* output byref types into --header file

fix #19445

* fix comments

* set targets
2022-03-23 20:57:13 +01:00

13 lines
259 B
Nim

discard """
matrix: "--nimcache:tests/ccgbugs/nimcache19445 --cincludes:nimcache19445 --header:m19445"
targets: "c"
"""
# bug #19445
type
Foo* {.exportc.} = object
a*, b*, c*, d*: int
proc dummy(): Foo {.exportc.} = discard
{.compile:"m19445.c".}