mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 09:24:36 +00:00
In order not to trip the optimization in genInfixCall we have to do so. The same trick is also used in setExternName. Fixes #8241
8 lines
115 B
Nim
8 lines
115 B
Nim
discard """
|
|
targets: "cpp"
|
|
action: "compile"
|
|
"""
|
|
|
|
proc foo(): cstring {.importcpp: "", dynlib: "".}
|
|
echo foo()
|