diff options
Diffstat (limited to 'tests/template/mdotcall2.nim')
-rw-r--r-- | tests/template/mdotcall2.nim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/template/mdotcall2.nim b/tests/template/mdotcall2.nim new file mode 100644 index 000000000..e906ac9d6 --- /dev/null +++ b/tests/template/mdotcall2.nim @@ -0,0 +1,7 @@ +# 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) |