From 22d5fbfe74038c925bae4abbb1a911818a77ee42 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 27 Mar 2000 18:36:21 +0000 Subject: Update. * stdio-common/tst-obprintf.c (main): Add another check to see obstack_printf handling all possible beginnings of the block inside an obstack chunk. --- stdio-common/tst-obprintf.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'stdio-common') diff --git a/stdio-common/tst-obprintf.c b/stdio-common/tst-obprintf.c index 5d7089b268..39e8fdab6f 100644 --- a/stdio-common/tst-obprintf.c +++ b/stdio-common/tst-obprintf.c @@ -25,6 +25,16 @@ main (void) obstack_finish (&ob); } + /* Another loop where we finish all objects, each of size 1. This will + manage to call `obstack_print' with all possible positions inside + an obstack chunk. */ + for (n = 0; n < 40000; ++n) + { + mcheck_check_all (); + obstack_printf (&ob, "%c", 'a' + n % 26); + obstack_finish (&ob); + } + /* And a final check. */ mcheck_check_all (); -- cgit v1.2.3