It simply reorders them, same behaviour as in C:
https://www.godbolt.org/z/ex138rh51
(the warnings in C++ mode had only been added after C++20)