Tests/CXXModules: add a test with duplicate sources

See: #26549
4 files changed