We have done this a couple of times with my wife traveling for work. At least with us, they put me as the primary guest at check-in, and the primary guest's benefits are applied. At checkout, they switched my wife back to the primary guest so that they could print the folio with her name.