diff --git a/memcheck/tests/error_counts.c b/memcheck/tests/error_counts.c index 819798754..7ec6dbfff 100644 --- a/memcheck/tests/error_counts.c +++ b/memcheck/tests/error_counts.c @@ -1,5 +1,6 @@ #include #include +#include #include "../memcheck.h" int main(void) @@ -14,6 +15,9 @@ int main(void) int n_leaked = 0; int n_suppressed = 0; + /* we require these longs to have same size as a machine word */ + assert(sizeof(long) == sizeof(void*)); + /* Error counting */ printf("errors: %d\n", VALGRIND_COUNT_ERRORS);