summaryrefslogtreecommitdiff
path: root/tests/run-make/coverage/test_harness.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run-make/coverage/test_harness.rs')
-rw-r--r--tests/run-make/coverage/test_harness.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/run-make/coverage/test_harness.rs b/tests/run-make/coverage/test_harness.rs
new file mode 100644
index 00000000000..12a755734c1
--- /dev/null
+++ b/tests/run-make/coverage/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() {}