mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-04 04:02:41 +00:00
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:
7
tests/cpp/t8241.nim
Normal file
7
tests/cpp/t8241.nim
Normal file
@@ -0,0 +1,7 @@
|
||||
discard """
|
||||
targets: "cpp"
|
||||
action: "compile"
|
||||
"""
|
||||
|
||||
proc foo(): cstring {.importcpp: "", dynlib: "".}
|
||||
echo foo()
|
||||
Reference in New Issue
Block a user