3 static int destruct_counter = 0;
5 static void test_destuctor(vmlog_hash_entry *entry) {
6 printf("# destroying entry %p\n",(void *)entry);
10 int main(int argc,char **argv)
14 vmlog_hashtable_init(&ht,10);
19 vmlog_hashtable_free(&ht,test_destuctor);
21 IS(destruct_counter,10);
30 /* vim: noet ts=8 sw=8