Synthesis report will show how it implemented an array in the code.
Using existing code doesn't guarantee anything, even proper functionality. Unless a piece of code has a regression suite that I can re-run and check for coverage, I always assume that existing code I have to use doesn't necessarily function correctly.
The coding of an array to be implemented in RAM is usually called out in the vendors synthesis documentation. This usually involves registering the correct port, not having resets on the array, and having the read and write signals properly implemented.