diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Makefile | 1 | ||||
| -rw-r--r-- | tests/test_malloc.c | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/Makefile b/tests/Makefile index 49ae984..6075ec8 100644 --- a/tests/Makefile +++ b/tests/Makefile | |||
| @@ -57,6 +57,7 @@ TARGETS= \ | |||
| 57 | test_fwrite_overwrite \ | 57 | test_fwrite_overwrite \ |
| 58 | test_vsnprintf \ | 58 | test_vsnprintf \ |
| 59 | test_vsprintf \ | 59 | test_vsprintf \ |
| 60 | test_malloc \ | ||
| 60 | 61 | ||
| 61 | .SILENT: | 62 | .SILENT: |
| 62 | 63 | ||
diff --git a/tests/test_malloc.c b/tests/test_malloc.c new file mode 100644 index 0000000..360ee82 --- /dev/null +++ b/tests/test_malloc.c | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <stdlib.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | free(malloc(1)); | ||
| 7 | } | ||
