Portugal got up to the mid-70s (narrow gauge a bit longer), there’s still a line of rusting steam locos in the sidings at Gaia station like Barry hulks.
I remember seeing those when I was in that part of Portugal back in 2001. A sad sight, even though I wasn't very interested in railways at the time.
Lovely film here of steam behind the Iron Curtain back in the late 60s, some of which carried on for another twenty years or more after this was shot:
How Harry P. Dodge managed to get permission to film all of this from Eastern Bloc authorities who often treated trainspotters as possible spies is anyone's guess, but I'm glad he did.