In the following code I am testing whether MPI_Win_shared_query return the correct size of the queried shared buffer. In the manual I understand it as it should
MPI_Win_shared_query