]> git.lizzy.rs Git - rust.git/blob - tests/codegen/instrument-coverage.rs
Rollup merge of #106714 - Ezrashaw:remove-e0490, r=davidtwco
[rust.git] / tests / codegen / instrument-coverage.rs
1 // Test that `-Cinstrument-coverage` creates expected __llvm_profile_filename symbol in LLVM IR.
2
3 // needs-profiler-support
4 // compile-flags: -Cinstrument-coverage
5
6 // CHECK: @__llvm_profile_filename = {{.*}}"default_%m_%p.profraw\00"{{.*}}
7
8 #![crate_type="lib"]
9
10 #[inline(never)]
11 fn some_function() {
12
13 }
14
15 pub fn some_other_function() {
16     some_function();
17 }