about summary refs log tree commit diff
path: root/tests/coverage/auxiliary
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-12-19 21:53:10 +1100
committerZalathar <Zalathar@users.noreply.github.com>2024-12-19 22:03:43 +1100
commitaced4dcf1047aab08b769b34fae9d4ba7de87f04 (patch)
tree40131ad1857c729b5bf690ba554fdfee4e43eb31 /tests/coverage/auxiliary
parent837a25dd41a1cc58cee093159a01f73719f330e8 (diff)
downloadrust-aced4dcf1047aab08b769b34fae9d4ba7de87f04.tar.gz
rust-aced4dcf1047aab08b769b34fae9d4ba7de87f04.zip
coverage: Add a synthetic test for when all spans are discarded
Diffstat (limited to 'tests/coverage/auxiliary')
-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() {}