mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 08:54:53 +00:00
18 lines
268 B
Nim
18 lines
268 B
Nim
discard """
|
|
targets: "c cpp"
|
|
"""
|
|
|
|
{.compile: "m19342.c".}
|
|
|
|
# bug #19342
|
|
type
|
|
Node* {.byRef.} = object
|
|
data: array[25, cint]
|
|
|
|
proc myproc(name: cint): Node {.importc: "hello", cdecl.}
|
|
|
|
proc parse =
|
|
let node = myproc(10)
|
|
doAssert node.data[0] == 999
|
|
|
|
parse() |