Enable sys_adjtimex() on arm-linux. Fixes #412408.
[valgrind.git] / memcheck / tests / leak-0.c
blobd563cb49a7e493a9b23a5f1b0024a34779129dd3
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include "leak.h"
4 #include "../memcheck.h"
6 // Live 0-sized blocks were being reported as leaked.
7 // Also, test that a pointer in a register is handled correctly.
8 int main()
10 DECLARE_LEAK_COUNTERS;
12 register char *foo;
14 GET_INITIAL_LEAK_COUNTS;
16 foo = malloc(0);
18 GET_FINAL_LEAK_COUNTS;
20 PRINT_LEAK_COUNTS(stderr);
22 free(foo);
23 return 0;