]> git.lizzy.rs Git - rust.git/blob - tests/run-make/coverage/lib/inline_always_with_dead_code.rs
Rollup merge of #106715 - BoxyUwU:new_solver_triagebot, r=lcnr
[rust.git] / tests / run-make / coverage / lib / inline_always_with_dead_code.rs
1 // compile-flags: -Cinstrument-coverage -Ccodegen-units=4 -Copt-level=0
2
3 #![allow(dead_code)]
4
5 mod foo {
6     #[inline(always)]
7     pub fn called() { }
8
9     fn uncalled() { }
10 }
11
12 pub mod bar {
13     pub fn call_me() {
14         super::foo::called();
15     }
16 }
17
18 pub mod baz {
19     pub fn call_me() {
20         super::foo::called();
21     }
22 }