about summary refs log tree commit diff
path: root/tests/coverage/unused_mod.coverage
diff options
context:
space:
mode:
Diffstat (limited to 'tests/coverage/unused_mod.coverage')
-rw-r--r--tests/coverage/unused_mod.coverage14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/coverage/unused_mod.coverage b/tests/coverage/unused_mod.coverage
new file mode 100644
index 00000000000..a8fa24ac6a7
--- /dev/null
+++ b/tests/coverage/unused_mod.coverage
@@ -0,0 +1,14 @@
+$DIR/auxiliary/unused_mod_helper.rs:
+   LL|       |#[allow(dead_code)]
+   LL|      0|pub fn never_called_function() {
+   LL|      0|    println!("I am never called");
+   LL|      0|}
+
+$DIR/unused_mod.rs:
+   LL|       |#[path = "auxiliary/unused_mod_helper.rs"]
+   LL|       |mod unused_module;
+   LL|       |
+   LL|      1|fn main() {
+   LL|      1|    println!("hello world!");
+   LL|      1|}
+