"Sun kinks" were a problem, even with jointed rails, in very hot weather.
The straighter the track, the more of an issue it is, you can 'lose' some expansion on bends.
There's often an issue with track on bridges, where the structure may expand at a greatly different rate to the track.