summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorjvoisin2023-07-09 19:14:44 +0200
committerjvoisin2023-07-09 19:14:44 +0200
commite7c10a1b27be94a09bb03bf31b4b66233e3d1bdc (patch)
tree74eaf63f04fa673d81fe900f38dbae1b1241fefe /tests
parentb333df29dcfabcd4ad0cf630fdb648eaa38ec1c7 (diff)
Add some malloc annotations
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile1
-rw-r--r--tests/test_malloc.c7
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
5int main(int argc, char** argv) {
6 free(malloc(1));
7}