A guy in another forum I belong too did this after reading all the articles about how the M16 platform sucks in the sand.
So he did a test by dumping his rifle in the rocky sand and dirt at his range and seeing what happened. This was more a test of dirt not of temperature.
Used a Cav lower and CMMG Upper. Standard gas system.
Buried in sand shot, buried again, shot, buried ejection cover open, shot, run during match without cleaning. = 100% reliability.
Rifle dust cover up facing up buried in dirt and sand and shot - no malfunctions done 5 times with 5 mags.- 100% reliability.
Then cover it dust cover open and drive a jeep over it then shoot it with no cleaning from the last tests.
Weapon still fired but required simple malfunction drill of racking the charging handle two times. <-- by this time all the lube was also cooked off but it still worked.