diff options
Diffstat (limited to 'testsuites/libtests/POSIX/realloc.c')
-rw-r--r-- | testsuites/libtests/POSIX/realloc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/testsuites/libtests/POSIX/realloc.c b/testsuites/libtests/POSIX/realloc.c index ac972dbc46..2203e4b880 100644 --- a/testsuites/libtests/POSIX/realloc.c +++ b/testsuites/libtests/POSIX/realloc.c @@ -12,10 +12,9 @@ #include <stdlib.h> -int -main (void) +int main(void) { - realloc (NULL, 42); + void *p = realloc(NULL, 42); - return 0; + return (p == NULL); } |