From 4a8c7f58977103dec5b5ca329b4149bcdfc0d4b3 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 13 Jul 2001 03:08:08 +0000 Subject: Add test for proper realloc() behavior. --- test/malloc/malloc.c | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) (limited to 'test/malloc') diff --git a/test/malloc/malloc.c b/test/malloc/malloc.c index 698ab5e70..ac40ec6a2 100644 --- a/test/malloc/malloc.c +++ b/test/malloc/malloc.c @@ -10,7 +10,16 @@ #define random_size() (random()%MAX_SIZE) #define random_ptr() (random()%N_PTRS) +void test1(void); +void test2(void); + int main(int argc,char *argv[]) +{ + test1(); + test2(); +} + +void test1(void) { void **ptrs; int i,j; @@ -37,7 +46,24 @@ int main(int argc,char *argv[]) for(i=0;i