The C standard hints in a footnote attached to C17 6.7.3p5 that const objects which are not volatile can be placed in read-only memory, which implies that volatile objects can never be placed there. GCC appears to be following that behavior: https://godbolt.org/z/9WEq18TWz and this changes Clang to behave the same.
Fixes #56468