__llvm_profile_write_file may not be provided if the executable target uses NO_CLANG_COVERAGE() macro and arrives as test's dependency via DEPENDS() macro. That's why we provide a weak no-op implementation for __llvm_profile_write_file, which is used below in the code, to correctly save codecoverage profile before program exits using abort().
| 24 | // That's why we provide a weak no-op implementation for __llvm_profile_write_file, |
| 25 | // which is used below in the code, to correctly save codecoverage profile before program exits using abort(). |
| 26 | Y_WEAK int __llvm_profile_write_file(void) { |
| 27 | return 0; |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | #endif |
no outgoing calls
no test coverage detected