Add a reduced testcase from pr23025.