3 * demonstrate a splay-tree depth problem
24 struct list
*head
= NULL
;
25 struct list
*tail
= NULL
;
30 for (direction
= 0; direction
< 2; direction
++)
32 fprintf (stdout
, "allocating\n");
35 for (n
= 0; n
< SCALE
; ++n
)
37 p
= malloc (sizeof *p
);
40 fprintf (stdout
, "malloc failed\n");
61 fprintf (stdout
, "freeing\n");
73 fprintf (stdout
, "done\n");
79 /* { dg-output "allocating.*freeing.*allocating.*freeing.*done" } */