Add a testcase from pr16059.

It was fixed back in r182750, but this is a nice testcase to have.