about summary refs log tree commit diff
path: root/tests/coverage/auxiliary/discard_all_helper.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/coverage/auxiliary/discard_all_helper.rs')
-rw-r--r--tests/coverage/auxiliary/discard_all_helper.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/coverage/auxiliary/discard_all_helper.rs b/tests/coverage/auxiliary/discard_all_helper.rs
new file mode 100644
index 00000000000..9290bac7e53
--- /dev/null
+++ b/tests/coverage/auxiliary/discard_all_helper.rs
@@ -0,0 +1,6 @@
+//@ edition: 2021
+
+// Force this function to be generated in its home crate, so that it ends up
+// with normal coverage metadata.
+#[inline(never)]
+pub fn external_function() {}