Files
Nim/tests/template/mdotcall2.nim
metagn 88388040db add tests to close #7223, close #11733 (#22111)
add test to close #7223, close #11733

closes #7223, closes #11733, were fixed by #22076
2023-06-16 17:14:47 +02:00

8 lines
175 B
Nim

# imported by mdotcall
proc baseAddr*[T](x: openarray[T]): pointer =
cast[pointer](x)
proc shift*(p: pointer, delta: int): pointer =
cast[pointer](cast[int](p) + delta)