aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-10-16 21:25:31 -0500
committerGanesh Viswanathan <dev@genotrance.com>2019-10-16 21:25:31 -0500
commit8dc327d02b851a6447e971823cb440f973c5a146 (patch)
tree9a7f481fd0fac683a734da231686e255fe378083 /tests
parent48955b3aa140ee7a903e5bf6bb6e36527a0a8359 (diff)
downloadnimterop-issue139.tar.gz
nimterop-issue139.zip
Implement var procissue139
Diffstat (limited to 'tests')
-rw-r--r--tests/tpcre.nim7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/tpcre.nim b/tests/tpcre.nim
index 5bc97da..41809cb 100644
--- a/tests/tpcre.nim
+++ b/tests/tpcre.nim
@@ -1,6 +1,6 @@
import os
-import nimterop/[cimport, build, paths]
+import nimterop/[cimport, build]
const
baseDir = getProjectCacheDir("nimterop" / "tests" / "pcre")
@@ -33,3 +33,8 @@ cPlugin:
cImport(pcreH, dynlib="dynpcre")
echo version()
+
+proc my_malloc(a1: cuint) {.cdecl.} =
+ discard
+
+malloc = my_malloc