1 #include <ccan/talloc/talloc.c>
3 #include <ccan/tap/tap.h>
5 static int destroy_int(int *p)
11 int main(int argc, char *argv[])
15 /* If autofree context doesn't work, we won't run all tests! */
18 p = talloc(talloc_autofree_context(), int);
20 talloc_set_destructor(p, destroy_int);
22 /* Note! We fail here, unless destructor called! */