Files
Nim/tests/ccgbugs/tnoalias.nim
Andreas Rumpf 20b011de19 refactoring in preparation for better, simpler name mangling that wor… (#21667)
* refactoring in preparation for better, simpler name mangling that works with IC flawlessly

* use new disamb field

* see if this makes tests green

* make tests green again
2023-04-24 06:52:37 +02:00

14 lines
294 B
Nim

discard """
ccodecheck: "\\i@'NI* NIM_NOALIAS field;' @'NIM_CHAR* NIM_NOALIAS x_p0,' @'void* NIM_NOALIAS q'"
"""
type
BigNum = object
field {.noalias.}: ptr UncheckedArray[int]
proc p(x {.noalias.}: openArray[char]) =
var q {.noalias.}: pointer = addr(x[0])
var bn: BigNum
p "abc"