mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-28 11:26:39 +00:00
fixes #5136
This commit is contained in:
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()
|
||||
Reference in New Issue
Block a user