2023-10-22 01:05:27 -05:00
|
|
|
// Test that `-Cinstrument-coverage=off` does not add coverage instrumentation to LLVM IR.
|
|
|
|
|
2024-03-16 01:02:30 -05:00
|
|
|
//@ compile-flags: -Zno-profiler-runtime
|
2024-04-24 15:06:54 -05:00
|
|
|
//@ revisions: n no off false_ zero
|
2023-10-22 01:05:27 -05:00
|
|
|
//@ [n] compile-flags: -Cinstrument-coverage=n
|
|
|
|
//@ [no] compile-flags: -Cinstrument-coverage=no
|
|
|
|
//@ [off] compile-flags: -Cinstrument-coverage=off
|
2024-04-24 15:06:54 -05:00
|
|
|
//@ [false_] compile-flags: -Cinstrument-coverage=false
|
2023-10-22 01:05:27 -05:00
|
|
|
//@ [zero] compile-flags: -Cinstrument-coverage=0
|
|
|
|
|
|
|
|
// CHECK-NOT: __llvm_profile_filename
|
|
|
|
// CHECK-NOT: __llvm_coverage_mapping
|
|
|
|
|
2024-04-24 15:06:54 -05:00
|
|
|
#![crate_type = "lib"]
|
2023-10-22 01:05:27 -05:00
|
|
|
|
|
|
|
#[inline(never)]
|
2024-04-24 15:06:54 -05:00
|
|
|
fn some_function() {}
|
2023-10-22 01:05:27 -05:00
|
|
|
|
|
|
|
pub fn some_other_function() {
|
|
|
|
some_function();
|
|
|
|
}
|