aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/tst-obprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/tst-obprintf.c')
-rw-r--r--stdio-common/tst-obprintf.c10
1 files changed, 10 insertions, 0 deletions
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 ();