4 #include "../memcheck.h"
9 // This ensures it's the same size on 32-bit and 64-bit platforms.
10 char padding[ 2 * (8 - sizeof(struct n*)) ];
13 struct n *mk(struct n *l, struct n *r)
15 struct n *n = malloc(sizeof(struct n));
22 static struct n *mkcycle()
24 register struct n *a, *b, *c;
37 DECLARE_LEAK_COUNTERS;
39 struct n *volatile c1, *volatile c2;
41 GET_INITIAL_LEAK_COUNTS;
43 /* two simple cycles */
49 /* one cycle linked to another */
53 /* This is to make sure we end up merging cliques; see
62 /* two linked cycles */
71 CLEAR_CALLER_SAVED_REGS;
73 GET_FINAL_LEAK_COUNTS;
75 PRINT_LEAK_COUNTS(stderr);