US fastfood giant McDonald's has reported record second-quarter systemwide sales, and said it expects earnings per share for the period to rise 27%.