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
commit d83f66a24d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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/*")