Generate dynlib strings as a single rope (#8247)

In order not to trip the optimization in genInfixCall we have to do so.
The same trick is also used in setExternName.

Fixes #8241
This commit is contained in:
LemonBoy 2018-07-08 22:07:45 +02:00 • committed by Andreas Rumpf
commit d0b60f1fe3
2 changed files with 10 additions and 1 deletions

7
tests/cpp/t8241.nim Normal file
View file

@ -0,0 +1,7 @@
discard """
targets: "cpp"
action: "compile"
"""
proc foo(): cstring {.importcpp: "", dynlib: "".}
echo foo()