summaryrefslogtreecommitdiffstats
path: root/tests/codegen/instrument-coverage.rs
blob: 78f8875a2d90c5bb11aab95226772d7fb0465943 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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();
}