fixes #5136
This commit is contained in:
parent
06a8d37f9a
commit
d2fe857f94
2 changed files with 16 additions and 6 deletions
10
tests/cpp/tgen_prototype_for_importc.nim
Normal file
10
tests/cpp/tgen_prototype_for_importc.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
cmd: "nim cpp $file"
|
||||
output: '''Hello world'''
|
||||
"""
|
||||
|
||||
# bug #5136
|
||||
|
||||
{.compile: "foo.c".}
|
||||
proc myFunc(): cstring {.importc.}
|
||||
echo myFunc()
|
||||
Loading…
Add table
Add a link
Reference in a new issue