summaryrefslogtreecommitdiff
path: root/test/malloc/realloc0.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/malloc/realloc0.c')
-rw-r--r--test/malloc/realloc0.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/malloc/realloc0.c b/test/malloc/realloc0.c
index afe9bb9bd..62ae39d25 100644
--- a/test/malloc/realloc0.c
+++ b/test/malloc/realloc0.c
@@ -1,13 +1,13 @@
#include <stdlib.h>
+#include <stdio.h>
int main(int argc, char **argv)
{
- void *ptr = NULL;
- ptr = realloc(ptr, 0);
- printf("realloc(NULL, 0) -- pointer = %p\n", ptr);
-
- ptr = malloc(0);
- printf("malloc(0) -- pointer = %p\n", ptr);
- return 0;
-}
+ void *ptr = NULL;
+ ptr = realloc(ptr, 0);
+ printf("realloc(NULL, 0) -- pointer = %p\n", ptr);
+ ptr = malloc(0);
+ printf("malloc(0) -- pointer = %p\n", ptr);
+ return 0;
+}