Ok I have the test case ready.
Please find below 3 possible situations:
A: The blocks have the same name, the same functionality and the same interface,
Quartus issues a warning and proceed, the synthesis will be correct.
Picture: duplicated_ignored_warning_when_io_and_functionality_is_matching.png
B: The blocks have the same name with the same interface but different functionality,
Quartus issues a warning and proceed, the synthesis will be Incorrect.
C: The blocks have the same name but different functionality and different interface,
Quartus issues an error.
Picture named duplicated_ignored_error_when_blocks_have_different_function.png