coverage: Migrate tests/run-coverage
into tests/coverage
This commit is contained in:
parent
aea7c27eae
commit
e9d04c5e24
105 changed files with 7 additions and 9 deletions
22
tests/coverage/auxiliary/inline_always_with_dead_code.rs
Normal file
22
tests/coverage/auxiliary/inline_always_with_dead_code.rs
Normal file
|
@ -0,0 +1,22 @@
|
|||
// compile-flags: -Cinstrument-coverage -Ccodegen-units=4 -Copt-level=0
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
mod foo {
|
||||
#[inline(always)]
|
||||
pub fn called() {}
|
||||
|
||||
fn uncalled() {}
|
||||
}
|
||||
|
||||
pub mod bar {
|
||||
pub fn call_me() {
|
||||
super::foo::called();
|
||||
}
|
||||
}
|
||||
|
||||
pub mod baz {
|
||||
pub fn call_me() {
|
||||
super::foo::called();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue