mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
18 lines
360 B
Rust
18 lines
360 B
Rust
// Test that `-Cinstrument-coverage` creates expected __llvm_profile_filename symbol in LLVM IR.
|
|
|
|
// needs-profiler-support
|
|
// compile-flags: -Cinstrument-coverage
|
|
|
|
// CHECK: @__llvm_profile_filename = {{.*}}"default_%m_%p.profraw\00"{{.*}}
|
|
|
|
#![crate_type="lib"]
|
|
|
|
#[inline(never)]
|
|
fn some_function() {
|
|
|
|
}
|
|
|
|
pub fn some_other_function() {
|
|
some_function();
|
|
}
|