Test case to expose bug with handling of temporary variables.