summaryrefslogtreecommitdiffstats
path: root/tests/coverage-map/status-quo/test_harness.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/coverage-map/status-quo/test_harness.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/coverage-map/status-quo/test_harness.rs b/tests/coverage-map/status-quo/test_harness.rs
new file mode 100644
index 000000000..12a755734
--- /dev/null
+++ b/tests/coverage-map/status-quo/test_harness.rs
@@ -0,0 +1,10 @@
+// Verify that the entry point injected by the test harness doesn't cause
+// weird artifacts in the coverage report (e.g. issue #10749).
+
+// compile-flags: --test
+
+#[allow(dead_code)]
+fn unused() {}
+
+#[test]
+fn my_test() {}