Add regression test for Issue 19811.

Add regression test for Issue 19811.

(Thanks for @emk for providing this.)

Fix #19811.