rust/tests/coverage/unused-local-file.coverage
Zalathar 078144fdfa coverage: Detect unused local file IDs to avoid an LLVM assertion
This case can't actually happen yet (other than via a testing flag), because
currently all of a function's spans must belong to the same file and expansion.
But this will be an important edge case when adding expansion region support.
2025-05-10 00:24:03 +10:00

8 lines
262 B
Plaintext

LL| |//@ edition: 2021
LL| |
LL| |// Force this function to be generated in its home crate, so that it ends up
LL| |// with normal coverage metadata.
LL| |#[inline(never)]
LL| 1|pub fn external_function() {}