In order not to trip the optimization in genInfixCall we have to do so. The same trick is also used in setExternName. Fixes #8241
7 lines
115 B
Nim
7 lines
115 B
Nim
discard """
|
|
targets: "cpp"
|
|
action: "compile"
|
|
"""
|
|
|
|
proc foo(): cstring {.importcpp: "", dynlib: "".}
|
|
echo foo()
|