This tests for a bug that was introduced in commit edc1686a ("vfprintf:
Reuse work_buffer in group_number") and fixed as a side effect of commit
6caddd34 ("Remove most vfprintf width/precision-dependent allocations
(bug 14231, bug 26211).").
(cherry picked from commit ca6466e8)