mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
28 lines
523 B
Rust
28 lines
523 B
Rust
// compile-flags: -Cinstrument-coverage -Ccodegen-units=4 --crate-type dylib -Copt-level=0
|
|
// build-pass
|
|
// needs-profiler-support
|
|
|
|
// Regression test for #85461 where MSVC sometimes fails to link instrument-coverage binaries
|
|
// with dead code and #[inline(always)].
|
|
|
|
#![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();
|
|
}
|
|
}
|