fixes #21116; always mangles the param (#21121)

* fixes #21116; always mangles the param

* idOrSig

* fixes tests

* Apply suggestions from code review
This commit is contained in:
ringabout
2022-12-17 16:10:56 +08:00
committed by GitHub
parent 7fa983f5e6
commit d83f66a24d
3 changed files with 12 additions and 6 deletions

10
tests/ccgbugs/t21116.nim Normal file
View File

@@ -0,0 +1,10 @@
discard """
target: "c cpp"
disabled: windows
"""
# bug #21116
import std/os
proc p(glob: string) =
for _ in walkFiles(glob): discard
p("dir/*")

View File

@@ -1,5 +1,5 @@
discard """
ccodecheck: "\\i@'NI* NIM_NOALIAS field;' @'NIM_CHAR* NIM_NOALIAS x,' @'void* NIM_NOALIAS q'"
ccodecheck: "\\i@'NI* NIM_NOALIAS field;' @'NIM_CHAR* NIM_NOALIAS x__0qEngDE9aYoYsF8tWnyPacw,' @'void* NIM_NOALIAS q'"
"""
type