Failing test for #22557
Proposed patch for #22557