mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
19 lines
270 B
Nim
19 lines
270 B
Nim
discard """
|
|
targets: "c cpp"
|
|
"""
|
|
|
|
{.compile: "m19342.c".}
|
|
|
|
# bug #19342
|
|
type
|
|
Node* {.bycopy.} = 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()
|