For example, https://codecov.io/gh/dlang/dmd/src/master/src/dmd/backend/cod4.d shows 0% coverage.
Probably because the backend is compiled with `-betterC` which apparently breaks `-cov`.
@MoonlightSentinel created dlang/dmd pull request #11522 "Workaround for Issue 21119 - Disable -betterC for coverage builds" mentioning this issue: - Workaround for Issue 21119 - Disable -betterC for coverage builds because -betterC apparently breaks coverage generation https://github.com/dlang/dmd/pull/11522
dlang/dmd pull request #11522 "Workaround for Issue 21119 - Disable -betterC for coverage builds" was merged into master: - ceb3cc976f1968d83a2f91112b30bd2a9d0ba647 by MoonlightSentinel: Workaround for Issue 21119 - Disable -betterC for coverage builds because `-betterC` apparently breaks coverage generation https://github.com/dlang/dmd/pull/11522
-cov requires linking with druntime, and -betterC explicitly must not require druntime. This is not a bug in the backend.
Working now.