summaryrefslogtreecommitdiff
path: root/tests/memory.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2002-01-15 00:50:28 +0100
committerKevin Ryde <user42@zip.com.au>2002-01-15 00:50:28 +0100
commit2b2ab290faed9a1dde21663bbd1e3696b65f3065 (patch)
tree72245e5d54d40d58d98646f55f07f1e8ba6f5a0b /tests/memory.c
parent0896df454eb5e9c207131c5c41a5afe7ba6292f8 (diff)
downloadgmp-2b2ab290faed9a1dde21663bbd1e3696b65f3065.tar.gz
* tests/memory.c, tests/tests.h (tests_memory_valid): New function.
Diffstat (limited to 'tests/memory.c')
-rw-r--r--tests/memory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/memory.c b/tests/memory.c
index 8e8f40314..a67e66669 100644
--- a/tests/memory.c
+++ b/tests/memory.c
@@ -58,6 +58,12 @@ tests_memory_find (void *ptr)
return NULL;
}
+int
+tests_memory_valid (void *ptr)
+{
+ return (tests_memory_find (ptr) != NULL);
+}
+
void *
tests_allocate (size_t size)
{