Add the testcase from pr13254 (the old scalarreply pass handles this wrong;