diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-12-21 11:38:33 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-12-21 11:38:33 +0100 |
commit | d2fe857f9476c6b640b55d99c55aefb0bb1dcca8 (patch) | |
tree | 613635e7c5368e163211011a243d5ab853805b7d /tests/cpp | |
parent | 06a8d37f9a6e194351c58c6668df4a4e69c5f470 (diff) | |
download | Nim-d2fe857f9476c6b640b55d99c55aefb0bb1dcca8.tar.gz |
fixes #5136
Diffstat (limited to 'tests/cpp')
-rw-r--r-- | tests/cpp/tgen_prototype_for_importc.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cpp/tgen_prototype_for_importc.nim b/tests/cpp/tgen_prototype_for_importc.nim new file mode 100644 index 000000000..91f34755b --- /dev/null +++ b/tests/cpp/tgen_prototype_for_importc.nim @@ -0,0 +1,10 @@ +discard """ + cmd: "nim cpp $file" + output: '''Hello world''' +""" + +# bug #5136 + +{.compile: "foo.c".} +proc myFunc(): cstring {.importc.} +echo myFunc() |