mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 14:23:45 +00:00
* 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
14 lines
294 B
Nim
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"
|