Skip to content

Commit

Permalink
Add test case for #86177 and #85718
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleywiser committed Dec 20, 2021
1 parent 23f6923 commit 341d65d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
@@ -0,0 +1,7 @@
1| |#[path = "lib/unused_mod_helper.rs"]
2| |mod unused_module;
3| |
4| 1|fn main() {
5| 1| println!("hello world!");
6| 1|}

3 changes: 3 additions & 0 deletions src/test/run-make-fulldeps/coverage/lib/unused_mod_helper.rs
@@ -0,0 +1,3 @@
pub fn never_called_function() {
println!("I am never called");
}
6 changes: 6 additions & 0 deletions src/test/run-make-fulldeps/coverage/unused_mod.rs
@@ -0,0 +1,6 @@
#[path = "lib/unused_mod_helper.rs"]
mod unused_module;

fn main() {
println!("hello world!");
}

0 comments on commit 341d65d

Please sign in to comment.